public async Task <IHttpActionResult> GetEvent(int id) { Att_Event Event = await db.Events.FindAsync(id); if (Event == null) { return(NotFound()); } var eventVM = new Event_VM { Id = Event.Id, Name = Event.Name }; return(Ok(eventVM)); }
public Event(int id) { InitializeComponent(); vm = new Event_VM(id); Afficher(); }