public void Edit(int feeTypeId, [FromBody] Extems.Admission.Entities.FeeType feeType) { if (feeType == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.FeeTypeRepository.Update(feeType, feeTypeId); } 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() { Extems.Admission.Entities.FeeType feeType = Fixture().GetLast(); Assert.NotNull(feeType); }
public void Previous() { Extems.Admission.Entities.FeeType feeType = Fixture().GetPrevious(0); Assert.NotNull(feeType); }