public OptimizationAlgorithm(IDeveloperRepository developerRepository, ITicketRepository ticketRepository) { Developers = developerRepository.GetDevelopers(); Tickets = ticketRepository.GetTickets(); CostCalculator = new Cost(Developers, Tickets); Domain = GetDomain(); }
public DeveloperListModel Build() { var developers = developerRepository.GetDevelopers(); var modelList = developers.Select(developer => new DeveloperItemModel { Id = developer.Id, Name = developer.Name }).ToList(); return(new DeveloperListModel(modelList)); }
public IActionResult Create() { ViewBag.teamLeaders = teamLeaderRepository.GetTeamLeaders(); ViewBag.developers = developerRepository.GetDevelopers(); return(View()); }
public IActionResult GetDevelopers(int type=0) { IEnumerable<DeveloperModel> developers = developerRepository.GetDevelopers(type); return Json(developers); }
public IActionResult ShowDevelopers() { ViewBag.Developers = developerRepository.GetDevelopers(); return(View()); }