Esempio n. 1
0
        // GET: ClientController/Details/5
        public IActionResult  Details(int id)
        {
            if (id < 0)
            {
                return(NotFound());
            }
            var _client = _clientRepo.GetByIdWithRelationship(id);

            if (_client == null)
            {
                return(NotFound());
            }
            ViewClientDetailViewModel client = _mapper.Map <ViewClientDetailViewModel>(_client);

            return(PartialView("_Details", client));
        }