public HttpResponseMessage PostAddDep([FromBody] Department value) { if (data.AddDepartment(value)) { return(Request.CreateResponse(HttpStatusCode.Created)); } else { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } }