Пример #1
0
 public CellService(IClientManager clientManager, IUserManager userManager, IClientTypeManager typeManager, IPackageManager packageManager)
 {
     _clientManager  = clientManager;
     _userManager    = userManager;
     _typeManager    = typeManager;
     _packageManager = packageManager;
 }
Пример #2
0
 public CellService()
 {
     _userManager    = new UserManager();
     _typeManager    = new ClientTypeManager();
     _clientManager  = new ClientManager();
     _packageManager = new PackageManager();
 }
Пример #3
0
 public CRMManager()
 {
     clientManager     = ModulesRegistrations.RegisterCRMModule().Resolve <IClientManager>();
     packageManager    = ModulesRegistrations.RegisterCRMModule().Resolve <IPackageManager>();
     clientTypeManager = ModulesRegistrations.RegisterCRMModule().Resolve <IClientTypeManager>();
     lineManager       = ModulesRegistrations.RegisterCRMModule().Resolve <ILineManager>();
 }
Пример #4
0
 public ReportsEngineManager()
 {
     _clientTypeManager = GetContainer().Resolve <IClientTypeManager>();
     _smsManager        = GetContainer().Resolve <ISMSManager>();
     _callManager       = GetContainer().Resolve <ICallManager>();
     _clientManager     = GetContainer().Resolve <IClientManager>();
     _packageManager    = GetContainer().Resolve <IPackageManager>();
     _lineManager       = GetContainer().Resolve <ILineManager>();
     _crmManager        = GetContainer().Resolve <ICRMManager>();
 }
Пример #5
0
 public IEnumerable <ClientTypeDto> GetClientTypes()
 {
     try
     {
         List <ClientTypeDto> clientTypeDto;
         lock (obj)
         {
             clientTypeManager = GetContainer().Resolve <IClientTypeManager>();
             clientTypeDto     = clientTypeManager.AddOrUpdateClientTypeDto().Result.ToList();
             return(clientTypeDto);
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
         return(null);
     }
 }