BLL.UserGroupImageManagement.DeleteImage C# (CSharp) Method

DeleteImage() public static method

public static DeleteImage ( int imageId ) : bool
imageId int
return bool
        public static bool DeleteImage(int imageId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                uow.UserGroupImageManagementRepository.DeleteRange(x => x.ImageId == imageId);
                return uow.Save();
            }
        }