Esempio n. 1
0
 public IHttpActionResult AddEvent([FromBody] @event evt)
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(BadRequest(ModelState));
         }
         dbLayer.AddEvent(evt);
         return(Ok("event Created Successfully"));
     }
     catch (Exception e)
     {
         return(Ok("Inter Server Error" + e));
     }
 }