/// <summary> /// Get All ProcessEmail Template /// </summary> /// <returns></returns> public List<ProcessEmailTemplateBO> GetAllProcessEmailTemplate() { var processEmailTemplateProvider = new ProcessEmailTemplateProvider(); Mapper.CreateMap<tblProcessEmailTemplateDto, ProcessEmailTemplateBO>(); Mapper.CreateMap<tblProcessDto, ProcessBO>(); return Mapper.Map<List<tblProcessEmailTemplateDto>, List<ProcessEmailTemplateBO>>(processEmailTemplateProvider.GetAllProcessEmailTemplate()); }
/// <summary> /// Get ProcessEmail Template By Id /// </summary> /// <returns></returns> public ProcessEmailTemplateBO GetProcessEmailTemplate(int id) { var processEmailTemplateProvider = new ProcessEmailTemplateProvider(); Mapper.CreateMap<tblProcessEmailTemplateDto, ProcessEmailTemplateBO>(); Mapper.CreateMap<tblProcessDto, ProcessBO>(); return Mapper.Map<tblProcessEmailTemplateDto, ProcessEmailTemplateBO>(processEmailTemplateProvider.GetProcessEmailTemplate(id)); }
/// <summary> /// Save Process Email Template /// </summary> /// <param name="masterConfigurationBO"></param> /// <returns></returns> public int SaveProcessEmailTemplate(ProcessEmailTemplateBO processEmailTemplateBO) { Mapper.CreateMap<ProcessEmailTemplateBO, tblProcessEmailTemplateDto>(); tblProcessEmailTemplateDto tblProcessEmailTemplateDto = new tblProcessEmailTemplateDto(); Mapper.Map(processEmailTemplateBO, tblProcessEmailTemplateDto); var processEmailTemplateProvider = new ProcessEmailTemplateProvider(); return processEmailTemplateProvider.SaveProcessEmailTemplate(tblProcessEmailTemplateDto); }
/// <summary> /// Delete ProcessEmailTemplate /// </summary> /// <param name="masterConfigDto"></param> /// <returns>int</returns> public bool DeleteProcessEmailTemplate(int processEmailTemplateId) { var processEmailTemplateProvider = new ProcessEmailTemplateProvider(); return processEmailTemplateProvider.DeleteProcessEmailTemplate(processEmailTemplateId); }