Exemplo n.º 1
0
 public bool RemoveUserById(Guid userId)
 {
     if (userId == null)
     {
         throw new ArgumentNullException("user id is null");
     }
     foreach (var awardId in relationsDAL.GetImagesIdsByUserId(userId).ToArray())
     {
         relationsDAL.RemoveRelation(userId, awardId);
     }
     return(usersDAL.RemoveUserById(userId));
 }