Пример #1
0
 public ImageDTO GetImageById(Guid imageId)
 {
     if (imageId == null)
     {
         throw new ArgumentNullException("image id is null");
     }
     return(imagesDAL.GetImageById(imageId));
 }
Пример #2
0
 private bool IsRelationExist(Guid userId, Guid imageId)
 {
     try
     {
         usersDAL.GetUserById(userId);
         imagesDAL.GetImageById(imageId);
     }
     catch
     {
         return(false);
     }
     return(true);
 }