public IHttpActionResult Delete(int id) { var result = classRepo.GetById(id); if (result == null) { return(Content(HttpStatusCode.NotFound, "Item does not exist")); } classRepo.Delete(result); return(Ok()); }
public IHttpActionResult Delete(int Id) { var result = classRepo.Delete(Id); return(Ok(result)); }