public void Edit(string dataType, [FromBody] MixERP.Net.Entities.Core.CustomFieldDataType customFieldDataType) { if (customFieldDataType == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CustomFieldDataTypeRepository.Update(customFieldDataType, dataType); } 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.CustomFieldDataType customFieldDataType = Fixture().GetNext(string.Empty); Assert.NotNull(customFieldDataType); }
public void First() { MixERP.Net.Entities.Core.CustomFieldDataType customFieldDataType = Fixture().GetFirst(); Assert.NotNull(customFieldDataType); }