public IHttpActionResult Post(DonorStatementDTO donorStatement) { return(Authorized(token => { try { _donorStatementService.SaveDonorStatement(token, donorStatement); return this.Ok(); } catch (Exception ex) { var apiError = new ApiErrorDto("Save Donor Statement", ex); throw new HttpResponseException(apiError.HttpResponseMessage); } })); }
public void SaveDonorStatement(string token, DonorStatementDTO donorStatement) { var mpDonorStatement = Mapper.Map <DonorStatementDTO, MpDonorStatement>(donorStatement); _mpDonorService.UpdateDonorStatement(token, mpDonorStatement); }