Beispiel #1
0
        public Shift Select(string name)
        {
            var shift = new Shift();

            shift = new ConvertShift().Convert(ShowAll().FirstOrDefault(c => c.Name == name));

            return(shift);
        }
Beispiel #2
0
        public ShiftModel ValidateShift(int id)
        {
            var shift = new ShiftModel();

            var shiftaux = repoShift.Read(id);

            if (shiftaux != null)
            {
                shift = new ConvertShift().ConvertModel(shiftaux);
            }

            return(shift);
        }