예제 #1
0
        // GET: Promotions

        public TypeRentsController()
        {
            if (_repositorytyperents == null)
            {
                _repositorytyperents = new RepositoryTypeRents();
            }
        }
예제 #2
0
 public RentsController()
 {
     if (_repositoryrents == null)
     {
         _repositoryrents = new RepositoryRents();
     }
     if (_repositoryclients == null)
     {
         _repositoryclients = new RepositoryClients();
     }
     if (_repositorytypepromotions == null)
     {
         _repositorytypepromotions = new RepositoryTypePromotions();
     }
     if (_repositorytyperents == null)
     {
         _repositorytyperents = new RepositoryTypeRents();
     }
     if (listbodyrents == null)
     {
         listbodyrents = new List <ModelBodyRents>();
     }
     if (_repositorybodyrents == null)
     {
         _repositorybodyrents = new RepositoryBodyRents();
     }
 }