BAL.Manager.CarManager.GetWorkShiftsByWorkerId C# (CSharp) Method

GetWorkShiftsByWorkerId() public method

Searches for uncompleted WorkShifts for driver with specific Id. If they are avialable, returns true, if not - false.
public GetWorkShiftsByWorkerId ( int WorkerId ) : bool
WorkerId int drivers id
return bool
        public bool GetWorkShiftsByWorkerId(int WorkerId)
        {
            var uncompletedShifts = uOW.WorkshiftHistoryRepo.Get(s => s.WorkEnded == null & s.WorkStarted != null & s.DriverId == WorkerId).Any();
            if (uncompletedShifts) { return true; }
            else { return false; }
        }