public HttpResponseMessage Post([FromBody] Admin adm) { int i = admDB.Add(adm); HttpResponseMessage response; if (i > 0) { response = Request.CreateResponse(HttpStatusCode.Created); } else { response = Request.CreateResponse(HttpStatusCode.NotFound); } return(response); }