Beispiel #1
0
        static void Main(string[] args)
        {
            AppUserManger _repository = new AppUserManger();
            //RoleManger _repository = new RoleManger();

            //Role MyRole = new Role() { Id = 1, Name = "JOJO" };
            //AppUser appUser = new AppUser() { Name = "jojo", RoleId = 1, Address = "Egypt" };
            AppUser appUser = _repository.GetBy(2);

            _repository.Remove(appUser);

            Console.ReadKey();
        }
Beispiel #2
0
 public SuppliersController(SupplierManger supplierMangerPram, AppUserManger appUserMangerPram)
 {
     this._supplierManger = supplierMangerPram;
     this._appUserManger  = appUserMangerPram;
 }
Beispiel #3
0
 public AppUsersController(AppUserManger appUserMangerPram, RoleManger roleMangerPram)
 {
     this._appUserManger = appUserMangerPram;
     this._roleManger    = roleMangerPram;
 }