public ActionResult GetTag(long id) { try { Tag tag = tagService.Buscar(id); TagDto dto = mapper.Map <TagDto>(tag); return(Ok(dto)); } catch (Exception e) { return(BadRequest(e)); } }
// GET: Admin/Tag/Details/5 public ActionResult Details(int id) { TagViewModel tagVm = Mapper.Map <TagViewModel>(_tagService.Buscar(x => x.Id == id).First()); return(View(tagVm)); }