public static Spellduty MapSpell(SpelldutyCustom spCus) { Spellduty sp = new Spellduty(); sp.id = spCus.id; sp.startTime = Resource.MyStaticMethods.ConvertTimeSpell(spCus.TimeSt); sp.endTime = Resource.MyStaticMethods.ConvertTimeSpell(spCus.TimeEn); return(sp); }
public static SpelldutyCustom MapSpellCus(Spellduty sp) { SpelldutyCustom spCus = new SpelldutyCustom(); spCus.id = sp.id; spCus.startTime = sp.startTime; spCus.endTime = sp.endTime; spCus.TimeSt = sp.startTime.Value.ToShortTimeString(); spCus.TimeEn = sp.endTime.Value.ToShortTimeString(); spCus.Date = sp.startTime.Value.ToShortDateString(); return(spCus); }