Пример #1
0
 public SearchController(IDepartamentRepository depRepository, IDepartamentBusinessLogic depBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, UserManager <IdentityUser> userManager)
 {
     _depBusinessLogic      = depBusinessLogic;
     _companyBusinessLogic  = companyBusinessLogic;
     _employeeBusinessLogic = employeeBusinessLogic;
     _userManager           = userManager;
 }
Пример #2
0
 public ContractsController(IContractsRepository repository, IDepartamentBusinessLogic departamentBusinessLogic, IContractsBusinessLogic contractsBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IMapper mapper)
 {
     _departamentBusinessLogic = departamentBusinessLogic;
     _contractsBusinessLogic   = contractsBusinessLogic;
     _employeeBusinessLogic    = employeeBusinessLogic;
     _companyBusinessLogic     = companyBusinessLogic;
     _mapper = mapper;
 }
Пример #3
0
        public static Company ConvertToDbCompany(this CompanyModel model, ICompanyBusinessLogic companyBusinessLogic
            , IContactBusinessLogic contactBusinessLogic)
        {
            var company = companyBusinessLogic.GetById(model.Id);

            company.Comment = model.Comment;
            //company.CreateDate = DateTime.Now;
            company.Name = model.Name;
            company.Sites.AddRange(companyBusinessLogic.GetAllSites(company.Id));
            //company.IsDeleted = false;
            company.Type = companyBusinessLogic.GetAllTypes().First(x => x.Id == model.TypeId);
            company.Size = companyBusinessLogic.GetAllSizes().First(x => x.Id == model.SizeId);
            company.Sector = companyBusinessLogic.GetAllSectors().First(x => x.Id == model.SectorId);
            company.Status = companyBusinessLogic.GetAllStatuses().First(x => x.Id == model.StatusId);
            company.Owner = contactBusinessLogic.GetById(model.OwnerId);
            return company;
        }
Пример #4
0
 public PartnerResolverReverse(ICompanyBusinessLogic companyBusinessLogic)
 {
     _companyBusinessLogic = companyBusinessLogic;
 }
Пример #5
0
 public CompanyResolver(ICompanyBusinessLogic companyBusinessLogic)
 {
     _companyBusinessLogic = companyBusinessLogic;
 }
Пример #6
0
 public CompanyController(ICompanyBusinessLogic companyBusinessLogic)
 {
     _companyBusinessLogic = companyBusinessLogic;
 }
Пример #7
0
 public CompaniesController(ICompanyBusinessLogic companyBusinessLogic, 
     IContactBusinessLogic contactBusinessLogic)
 {
     _companyBusinessLogic = companyBusinessLogic;
     _contactBusinessLogic = contactBusinessLogic;
 }
Пример #8
0
 public CompanyController(ICompanyBusinessLogic companyBusinessLogic, IContractsBusinessLogic contractsBusinessLogic, IMapper mapper)
 {
     _companyBusinessLogic   = companyBusinessLogic;
     _contractsBusinessLogic = contractsBusinessLogic;
     _mapper = mapper;
 }
 public CompanyController(ICompanyBusinessLogic companyBusinessLogic)
 {
     _companyBusinessLogic = companyBusinessLogic;
 }