Beispiel #1
0
        public static LogInVm GetLogOnVm(string returnUrl)
        {
            var vm = new LogInVm();

            var    helper   = new UrlHelper(HttpContext.Current.Request.RequestContext);
            string indexUrl = helper.Action("Application", "Application");

            vm.ReturnUrl = returnUrl.IsNullOrEmpty() ? indexUrl : returnUrl;

            return(vm);
        }
Beispiel #2
0
 public static bool LogOn(LogInVm vm)
 {
     return(true);
 }
Beispiel #3
0
        public ActionResult LogIn(string returnUrl)
        {
            LogInVm vm = ViewModelsProvider.GetLogOnVm(returnUrl);

            return(View(vm));
        }
Beispiel #4
0
 public ActionResult LogIn(LogInVm vm)
 {
     return(Redirect("/profile"));
 }