/// <summary> /// SaveEmailConfiguration /// </summary> /// <param name="emailConfigurationModel"></param> public void SaveEmailConfiguration(EmailConfigurationModel emailConfigurationModel) { EmailConfigurationDC emailConfigurationDC = Mapper.Map <EmailConfigurationModel, EmailConfigurationDC>(emailConfigurationModel); ServiceResponse emailConfigurationResponse = _setupProxy.Execute(opt => opt.SaveEmailConfiguration(emailConfigurationDC)); if (emailConfigurationResponse.Status != ResponseStatus.Success) { HandleError(emailConfigurationResponse.Status, emailConfigurationResponse.ResponseMessage); } }
/// <summary> /// SaveEmailConfiguration /// </summary> /// <param name="emailConfiguration"></param> /// <returns></returns> public ServiceResponse SaveEmailConfiguration(EmailConfigurationDC emailConfiguration) { ServiceResponse emailConfigurationServiceResponse = new ServiceResponse(); try { SetContext(); EmailConfiguration emailConfigurationModel = Mapper.Map <EmailConfigurationDC, EmailConfiguration>(emailConfiguration); _setupManager.SaveEmailConfiguration(emailConfigurationModel); } catch (Exception ex) { HandleError(ex, emailConfigurationServiceResponse); } return(emailConfigurationServiceResponse); }