I am building a website in asp.net core MVC. I have added new area in it. now when i try to use "redirecttoaction" as below:
return RedirectToAction("Index", "testing", new { area = "Employer" }, null);
it is hitting to the action, but view is not loading. not sure what is changed in ASP.NET Core for it. I don't want to hard code the view path like below:
return View("~/Areas/Employer/Views/testing/Index.cshtml");
Please confirm, what is the right way to achieve this.