public async Task <IActionResult> ActivateAccount(AccountActivationRequestModel model) { ViewData["UserEmail"] = HttpContext.Session.GetString("UserEmail"); var jwtToken = HttpContext.Session.GetString("Token"); GenericResponseModel response = new GenericResponseModel(); var apiResponse = await httpClientConfig.ApiPutResponse("Learner/activateAccount", model, jwtToken); response = JsonConvert.DeserializeObject <GenericResponseModel>(apiResponse); if (response.StatusCode == 200) { TempData["alert"] = "alert-success"; ViewBag.Message = response.StatusMessage; return(View()); } else { TempData["alert"] = "alert-danger"; ViewBag.Message = response.StatusMessage; return(View()); } }