예제 #1
0
 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);
         }
     }));
 }
예제 #2
0
        public void SaveDonorStatement(string token, DonorStatementDTO donorStatement)
        {
            var mpDonorStatement = Mapper.Map <DonorStatementDTO, MpDonorStatement>(donorStatement);

            _mpDonorService.UpdateDonorStatement(token, mpDonorStatement);
        }