Beispiel #1
0
 public IHttpActionResult UpdateTask(entities.Task editTask)
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(BadRequest());
         }
         _TaskBO = new TaskBO();
         _TaskBO.EditTask(editTask);
         return(Ok("Success"));
     }
     catch (Exception)
     {
         return(Ok("Error"));
     }
 }