public IHttpActionResult GetTags(int id) { try { _logger.Debug(string.Format("ini process - GetModel,idUser: {0}", CurrentIdUser)); Tag tag = _tagBL.Get(id); _logger.Debug(string.Format("finish GetModel - success,idUser: {0}, modelId: {1}", CurrentIdUser, id)); return(Ok(tag ?? new Tag())); } catch (Exception ex) { LogError(ex); return(InternalServerError(ex)); } }
public async Task <IActionResult> Get() { var tags = await _tagBL.Get(); return(Ok(tags)); }