public SearchController(IDepartamentRepository depRepository, IDepartamentBusinessLogic depBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, UserManager <IdentityUser> userManager) { _depBusinessLogic = depBusinessLogic; _companyBusinessLogic = companyBusinessLogic; _employeeBusinessLogic = employeeBusinessLogic; _userManager = userManager; }
public ContractsController(IContractsRepository repository, IDepartamentBusinessLogic departamentBusinessLogic, IContractsBusinessLogic contractsBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IMapper mapper) { _departamentBusinessLogic = departamentBusinessLogic; _contractsBusinessLogic = contractsBusinessLogic; _employeeBusinessLogic = employeeBusinessLogic; _companyBusinessLogic = companyBusinessLogic; _mapper = mapper; }
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; }
public PartnerResolverReverse(ICompanyBusinessLogic companyBusinessLogic) { _companyBusinessLogic = companyBusinessLogic; }
public CompanyResolver(ICompanyBusinessLogic companyBusinessLogic) { _companyBusinessLogic = companyBusinessLogic; }
public CompanyController(ICompanyBusinessLogic companyBusinessLogic) { _companyBusinessLogic = companyBusinessLogic; }
public CompaniesController(ICompanyBusinessLogic companyBusinessLogic, IContactBusinessLogic contactBusinessLogic) { _companyBusinessLogic = companyBusinessLogic; _contactBusinessLogic = contactBusinessLogic; }
public CompanyController(ICompanyBusinessLogic companyBusinessLogic, IContractsBusinessLogic contractsBusinessLogic, IMapper mapper) { _companyBusinessLogic = companyBusinessLogic; _contractsBusinessLogic = contractsBusinessLogic; _mapper = mapper; }