Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="_repository"></param>
 /// <param name="_columnAuthRepository"></param>
 /// <param name="_hostingEnv"></param>
 /// <param name="_userRepository"></param>
 public CustomersInfoController(ICustomersInfoRepository _repository, IColumnAuthRepository _columnAuthRepository, IHostingEnvironment _hostingEnv, IUserRepository _userRepository)
 {
     Repository           = _repository;
     ColumnAuthRepository = _columnAuthRepository;
     hostingEnv           = _hostingEnv;
     userRepository       = _userRepository;
 }
Exemplo n.º 2
0
 public static void ModifyDataBase(List <CustomersInfo> customersInfo, ICustomersInfoRepository cutomer_repository)
 {
     foreach (var item in customersInfo)
     {
         try
         {
             cutomer_repository.PutEntityByCode(item);
         }
         catch (Exception)
         {
             throw;
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="_repository"></param>
 public POS_MasterController(IPOS_MasterRepository _repository, ICustomersInfoRepository _customerRepository, IUserRepository _userRepository)
 {
     Repository         = _repository;
     CustomerRepository = _customerRepository;
     userRepository     = _userRepository;
 }