Exemple #1
0
 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));
     }
 }
Exemple #2
0
        // 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));
        }