Kadr.Data.WorkShedule.IntSignToShedule C# (CSharp) Method

IntSignToShedule() public static method

public static IntSignToShedule ( int intSing ) : WorkShedule
intSing int
return WorkShedule
        public static WorkShedule IntSignToShedule(int? intSing)
        {
            if (intSing == 5)
                return KadrController.Instance.Model.WorkShedules.Where(wSh => wSh.id == 1).SingleOrDefault();
            if (intSing == 6)
                return KadrController.Instance.Model.WorkShedules.Where(wSh => wSh.id == 2).SingleOrDefault();
            throw new ArgumentOutOfRangeException("Название должности");
        }