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