public IHttpActionResult PutAuther(int id, Auther auther) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != auther.Auth_Id) { return(BadRequest()); } db.EditAuther(auther); return(StatusCode(HttpStatusCode.NoContent)); }