Skip to content
Permalink
Browse files
Wrong type
  • Loading branch information
ChrisRollings committed Mar 23, 2019
1 parent 430d6a9 commit af2f7b383e4dc01b172bcbe47e05f900c4c4508e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -4,6 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using groupH_M32COM.Angular.DatabaseClasses;
using groupH_M32COM.Angular.DTO;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

@@ -20,6 +21,7 @@ namespace groupH_M32COM.Angular.Controllers
this.repo = new RCBoatRepository(context);
}
// GET: api/Event
[Authorize]
[HttpGet]
public IEnumerable<EventsDTO> Get()
{
@@ -17,14 +17,14 @@ namespace groupH_M32COM.Angular.Models
public int WinningBoatId { get; set; }
public ICollection<EventPrizes> Prizes { get; set; }
public ICollection<Promotion> Promotions { get; set; }
public ICollection<EventDetail> RegisterdBoats { get; set; }
public ICollection<Boat> RegisterdBoats { get; set; }
public ICollection<SponsorShip> Sponsors { get; set; }

public EventDetail()
{
this.Prizes = new Collection<EventPrizes>();
this.Promotions = new Collection<Promotion>();
this.RegisterdBoats = new Collection<EventDetail>();
this.RegisterdBoats = new Collection<Boat>();
this.Sponsors = new Collection<SponsorShip>();
}
}

0 comments on commit af2f7b3

Please sign in to comment.