public HttpResponseMessage Save([FromBody] CostCenter c) { if (c.ID > 0) { return(Request.CreateResponse(HttpStatusCode.OK, c.Update())); } else { return(Request.CreateResponse(HttpStatusCode.OK, c.Save())); } }
public HttpResponseMessage Save([FromBody] CostCenter c) { if (c.ID > 0) { return(Request.CreateResponse(HttpStatusCode.OK, c.Update())); } else { return(Request.CreateResponse(HttpStatusCode.OK, c.Save())); } }