public UserDTO GetUserById(Guid userId) { if (userId == null) { throw new ArgumentNullException("user id is null"); } return(usersDAL.GetUserById(userId)); }
private bool IsRelationExist(Guid userId, Guid imageId) { try { usersDAL.GetUserById(userId); imagesDAL.GetImageById(imageId); } catch { return(false); } return(true); }