Example #1
0
        public Event AddEvent([FromBody] EventCredentialsDto value)
        {
            Event e = new Event();

            e.Name     = value.Name;
            e.Date     = value.Date;
            e.Price    = value.Price;
            e.Location = value.Location;
            RepoEvent.Add(e);
            return(e);
        }
Example #2
0
 public Event GetById([FromBody] EventCredentialsDto value)
 {
     return(RepoEvent.FindById(value.IdEvent));
 }