public void SendForgotPassEmailNotification(string userId, string sendersEmail, string url, string subject) { string filePath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", _appSettings.Value.EmailForgotPassTemp); string filePathLogo = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", _appSettings.Value.LogoUrl); //string lPageUrl = _appSettings.Value.LoginPageUrl; string tempContent = ExternalUtility.GetFileContent(filePath); string emailContent = string.Format(tempContent, userId, url); _emailSender.SendEmailAsync(sendersEmail, subject, emailContent, filePathLogo); }
public async Task <IActionResult> Index() { ViewData["Title"] = $"{_appSettings.Value.AppTitle}-{Subtitle.DepartmentList}"; var NoOfRowsSelItemLst = ExternalUtility.GetNoOfSelectItemList(_appSettings.Value.NoOfRowsOptions, _appSettings.Value.DefaultOptionRowSel); var deptVM = new DeptViewModel() { Department1 = "", SelState = _appSettings.Value.DefaultSelState, States = await _stateSerice.GetStateSelectList(), NoOfRows = NoOfRowsSelItemLst }; return(View(deptVM)); }