BLL.ImageProfile.DeleteImage C# (CSharp) Метод

DeleteImage() публичный статический Метод

public static DeleteImage ( int imageId ) : bool
imageId int
Результат bool
        public static bool DeleteImage(int imageId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                uow.ImageProfileRepository.DeleteRange(x => x.ImageId == imageId);
                return uow.Save();
            }
        }