Esempio n. 1
0
 public void EditTag(int id, Tag newTag)
 {
     if (newTag == null)
     {
         throw new ServiceNullArgumentException("Tag was null (in edit method)");
     }
     try
     {
         tagRepo.EditTag(id, newTag);
     }
     catch (DALException ex)
     {
         throw new ServiceException($"DAL exception : {ex.Message}");
     }
 }