示例#1
0
        // GET: Promotions

        public PromotionsController()
        {
            if (_repositorytypepromotions == null)
            {
                _repositorytypepromotions = new RepositoryTypePromotions();
            }
        }
示例#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();
     }
 }