public BusinessEmailDTO Update(BusinessEmailDTO modelDTO) { BusinessEmailDTO returnEmails = null; if (modelDTO != null && modelDTO.EmailID > 0) { businessEmailsRepos.UpdateBusinessEmail(0, BusinessEmailAssembler.ToEntity(modelDTO)); returnEmails = modelDTO; } return(returnEmails); }
public BusinessEmailDTO Update(BusinessEmailDTO oBusinessEmailsDTO) { BusinessEmailDTO returnEmails = null; if (oBusinessEmailsDTO != null && oBusinessEmailsDTO.EmailID > 0) { oBusinessEmailsRepos.UpdateBusinessEmail(0, BusinessEmailAssembler.ToEntity(oBusinessEmailsDTO)); returnEmails = oBusinessEmailsDTO; } return(returnEmails); }
public BusinessEmailDTO Create(BusinessEmailDTO modelDTO) { if (modelDTO != null) { return(BusinessEmailAssembler.ToDTO(businessEmailsRepos.CreateBusinessEmail(BusinessEmailAssembler.ToEntity(modelDTO)))); } return(null); }