public void Edit(string taxRateTypeCode, [FromBody] MixERP.Net.Entities.Core.TaxRateType taxRateType) { if (taxRateType == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.TaxRateTypeRepository.Update(taxRateType, taxRateTypeCode); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch (MixERPException ex) { throw new HttpResponseException(new HttpResponseMessage { Content = new StringContent(ex.Message), StatusCode = HttpStatusCode.InternalServerError }); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Next() { MixERP.Net.Entities.Core.TaxRateType taxRateType = Fixture().GetNext(string.Empty); Assert.NotNull(taxRateType); }
public void First() { MixERP.Net.Entities.Core.TaxRateType taxRateType = Fixture().GetFirst(); Assert.NotNull(taxRateType); }