Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public Event(int id)
 {
     InitializeComponent();
     vm = new Event_VM(id);
     Afficher();
 }