コード例 #1
0
        public string Register()
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.DemosController();
            var json       = controller.Register(context: context);

            return(json);
        }
コード例 #2
0
        public ActionResult Login()
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.DemosController();

            var(redirectUrl, errors, notFound) = controller.Login(context: context);
            if (!string.IsNullOrWhiteSpace(redirectUrl))
            {
                return(Redirect(redirectUrl));
            }
            else
            {
                return(RedirectToAction(errors, notFound));
            }
        }