BLL.UserGroupGroupManagement.DeleteGroup C# (CSharp) Method

DeleteGroup() public static method

public static DeleteGroup ( int groupId ) : bool
groupId int
return bool
        public static bool DeleteGroup(int groupId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                uow.UserGroupGroupManagementRepository.DeleteRange(x => x.GroupId == groupId);
                return uow.Save();
            }
        }