public JsonNetResult Login(LoginViewModel model)
        {
            var service = new IdentityService();
            var response = service.SignIn(model.LoginName, model.Password);

            return new JsonNetResult(response);
        }
        public ActionResult Login()
        {
            if (Request.IsAuthenticated)
            {
                return RedirectToRoute(new
                {
                    controller = "app"
                });
            }

            var model = new LoginViewModel();

            return View(model);
        }