public List <Models.User> Get()
        {
            var result = new List <Models.User>();

            using (var db = new Models.CompanyContext())
            {
                result = db.Users.ToList();
            }

            return(result);
        }
Exemplo n.º 2
0
 public UsersController(Models.CompanyContext cont)
 {
     context   = cont;
     usersRepo = new DAL.UsersRepository(context);
 }
Exemplo n.º 3
0
 public UsersController()
 {
     context   = new CompanyContext();
     usersRepo = new DAL.UsersRepository(context);
 }
Exemplo n.º 4
0
 public StructController(Models.CompanyContext cont)
 {
     context          = cont;
     jednostkiOrgRepo = new DAL.JednostkaOrgRepository(context);
 }
Exemplo n.º 5
0
 public StructController()
 {
     context          = new CompanyContext();
     jednostkiOrgRepo = new DAL.JednostkaOrgRepository(context);
 }