public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var tag = await _tagServices.GetTag(id.Value); if (tag == null) { return(NotFound()); } return(View(tag)); }
public async Task <IActionResult> Get(int id) { var model = await _tagServices.GetTag(id); return(Ok(model)); }