public void Edit(string dataType, [FromBody] Frapid.Config.Entities.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 (DataAccessException ex) { throw new HttpResponseException(new HttpResponseMessage { Content = new StringContent(ex.Message), StatusCode = HttpStatusCode.InternalServerError }); } #if !DEBUG catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } #endif }
public void Last() { Frapid.Config.Entities.CustomFieldDataType customFieldDataType = Fixture().GetLast(); Assert.NotNull(customFieldDataType); }
public void Next() { Frapid.Config.Entities.CustomFieldDataType customFieldDataType = Fixture().GetNext(string.Empty); Assert.NotNull(customFieldDataType); }