コード例 #1
0
        public EditQuoteAndSaveResponse EditQuoteAndSave(EditQuoteAndSaveRequest request)
        {
            var response = new EditQuoteAndSaveResponse();

            try
            {
                if (request?.Quote?.Id != null)
                {
                    _quoteRepository.EditQuoteAndSave(request.Quote);
                    response.IsSuccess = true;
                }
                else
                {
                    throw new Exception(string.Format("Error updating quote"));
                }
            }
            catch (Exception e)
            {
                response.IsSuccess    = false;
                response.ErrorMessage = e.Message;
            }
            return(response);
        }
コード例 #2
0
 public EditQuoteAndSaveResponse EditQuoteAndSave(EditQuoteAndSaveRequest request)
 {
     return(_quoteService.EditQuoteAndSave(request));
 }