Example #1
0
 public IHttpActionResult ModifyExistingStatus(Status c)
 {
     if (ModelState.IsValid)
     {
         try
         {
             repo.UpdateStatus(c);
             return(Ok("data entered successfully"));
         }
         catch (Exception)
         {
             return(NotFound());
         }
     }
     else
     {
         return(NotFound());
     }
 }