Example #1
0
        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));
        }
Example #2
0
        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));
        }