BLL.ImageProfile.ReadProfile C# (CSharp) Method

ReadProfile() public static method

public static ReadProfile ( int profileId ) : Models.ImageProfile
profileId int
return Models.ImageProfile
        public static Models.ImageProfile ReadProfile(int profileId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                var imageProfile = uow.ImageProfileRepository.GetById(profileId);
                if (imageProfile != null)
                    imageProfile.Image = BLL.Image.GetImage(imageProfile.ImageId);
                return imageProfile;
            }
        }