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