public CellService(IClientManager clientManager, IUserManager userManager, IClientTypeManager typeManager, IPackageManager packageManager) { _clientManager = clientManager; _userManager = userManager; _typeManager = typeManager; _packageManager = packageManager; }
public CellService() { _userManager = new UserManager(); _typeManager = new ClientTypeManager(); _clientManager = new ClientManager(); _packageManager = new PackageManager(); }
public CRMManager() { clientManager = ModulesRegistrations.RegisterCRMModule().Resolve <IClientManager>(); packageManager = ModulesRegistrations.RegisterCRMModule().Resolve <IPackageManager>(); clientTypeManager = ModulesRegistrations.RegisterCRMModule().Resolve <IClientTypeManager>(); lineManager = ModulesRegistrations.RegisterCRMModule().Resolve <ILineManager>(); }
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>(); }
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); } }