public static bool DeleteProfile(int profileId) { using (var uow = new DAL.UnitOfWork()) { uow.ImageProfileRepository.Delete(profileId); return uow.Save(); } }