Models Update

This commit is contained in:
batgo6o committed 2021-03-17 22:02:52 +02:00
1 parent 3b673f153e
commit 9f7dcd71d5
11 files changed
+201 -59

No files matched your search

+13 -4
View File
@@ -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");
}
}
}