Esempio n. 1
0
 public Tag GetTag(int id)
 {
     try
     {
         return(tagRepo.GetTag(id));
     }
     catch (DALException ex)
     {
         throw new ServiceException($"DAL exception : {ex.Message}");
     }
 }
Esempio n. 2
0
        public HttpResponseMessage Get(int Id)
        {
            Tag img = repo.GetTag(Id);

            return(Request.CreateResponse(HttpStatusCode.OK, img));
        }