Models Update
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using System;
|
||||
using Business.Business.UserManagment;
|
||||
using Models;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
|
||||
namespace Display
|
||||
{
|
||||
@@ -7,10 +10,16 @@ namespace Display
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var val = new Business.Business.UserManagment.Validator();
|
||||
if ()
|
||||
var val = new UserValidator();
|
||||
if (!val.CheckIfUserIsCreated())
|
||||
{
|
||||
|
||||
var InitialCreation = new CreateInitialUser("Admin", "Admin", "pass123");
|
||||
InitialCreation.CreateFirstRole();
|
||||
InitialCreation.CreateFirstUser();
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Already created");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user