Exemplo n.º 1
0
        public IActionResult Edit(int id)
        {
            ViewBag.Categories = _categoryyRepository.GetFullCategories();
            var agent = _homeRepository.GetAgentById(id);
            var model = _mapper.Map <Agent, AgentViewModel>(agent);

            return(View(model));
        }