public static Shift ToShift(EFShift EFShift) { Shift newShift = new Shift() { ShiftId = EFShift.ShiftId, Start = EFShift.Start, End = EFShift.End }; return(newShift); }
//Conversion Methods public static EFShift ToEfShift(Shift shift) { EFShift newShift = new EFShift() { ShiftId = shift.ShiftId, Start = shift.Start, End = shift.End }; return(newShift); }
public ShiftCRUD(DataContext db) { Shift = new EFShift(db); }