public IHttpActionResult DeleteUpload(int id) { _uploadServ.DeleteUpload(id); if (ModelState.IsValid) { return(Ok()); } else { return(BadRequest()); } }