public HttpResponseMessage Save([FromBody] Designation desig) { if (desig.ID == 0) { return(Request.CreateResponse(HttpStatusCode.OK, desig.Save())); } else { return(Request.CreateResponse(HttpStatusCode.OK, desig.Update())); } }