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); }