public HttpResponseMessage UpdateClientTax(UpdateClientTaxRequest model) { if (!ModelState.IsValid) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState)); } SuccessResponse response = new SuccessResponse(); ClientTaxesService.UpdateTax(model); return(Request.CreateResponse(response)); }
public HttpResponseMessage AddClientTax(AddClientTaxRequest model) { if (!ModelState.IsValid) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState)); } ItemResponse <ClientTaxes> response = new ItemResponse <ClientTaxes>(); response.Item = ClientTaxesService.UpdateTax(model); return(Request.CreateResponse(response)); }