public string Register() { var context = new ContextImplement(); var controller = new Implem.Pleasanter.Controllers.DemosController(); var json = controller.Register(context: context); return(json); }
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)); } }