Esempio n. 1
0
 public async Task <IActionResult> GetRegisterPage()
 {
     return(new ContentResult {
         ContentType = "text/html",
         StatusCode = (int)Status200OK,
         Content = BasicTemplater.GenerateRegisterPage()
     });
 }
Esempio n. 2
0
        private static ContentResult generateBadRequestRegister(string message)
        {
            BasicTemplater.errors.Add(message);
            var toReturn = new ContentResult {
                ContentType = "text/html",
                StatusCode  = Status400BadRequest,
                Content     = BasicTemplater.GenerateRegisterPage()
            };

            return(toReturn);
        }