示例#1
0
文件: UsersBLL.cs 项目: FR-MN/RGR
 public UserDTO GetUserById(Guid userId)
 {
     if (userId == null)
     {
         throw new ArgumentNullException("user id is null");
     }
     return(usersDAL.GetUserById(userId));
 }
示例#2
0
 private bool IsRelationExist(Guid userId, Guid imageId)
 {
     try
     {
         usersDAL.GetUserById(userId);
         imagesDAL.GetImageById(imageId);
     }
     catch
     {
         return(false);
     }
     return(true);
 }