public void Edit(int brandId, [FromBody] MixERP.Net.Entities.Core.Brand brand) { if (brand == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.BrandRepository.Update(brand, brandId); } 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.Brand brand = Fixture().GetNext(0); Assert.NotNull(brand); }
public void Previous() { MixERP.Net.Entities.Core.Brand brand = Fixture().GetPrevious(0); Assert.NotNull(brand); }