Example #1
0
 public bool DeleteHire(Hire hire)
 {
     if (hires.Remove(hires.FirstOrDefault(x => x.HireID == hire.HireID)))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        public DateTime GetHireUntilTime(uint _itemId)
        {
            Hire hire = hires.FirstOrDefault(x => x.ItemID == _itemId);

            if (hire is null)
            {
                return(DateTime.MaxValue);
            }
            else
            {
                return(hire.DateUntil);
            }
        }