public IActionResult GetBuyer(int id, [FromServices] IBuyerService service) { Dto foundBuyer = Wrapper.GetMapper.Map <Dto>(service.GetBuyer(id)); var listOfAllBuyers = service.GetBuyers(); var fixedListOfBuyers = listOfAllBuyers .Except(foundBuyer.ElementAsList()); foundBuyer.Buyers = fixedListOfBuyers.ToList(); foundBuyer.buyerInDropdown = $"{foundBuyer.Name} {foundBuyer.Surname}"; return(View("Index", foundBuyer)); }