public Tag GetTag(int id) { try { return(tagRepo.GetTag(id)); } catch (DALException ex) { throw new ServiceException($"DAL exception : {ex.Message}"); } }
public HttpResponseMessage Get(int Id) { Tag img = repo.GetTag(Id); return(Request.CreateResponse(HttpStatusCode.OK, img)); }