public static StoreHour MapToStoreHour(StoreHourDAO storeHour) { var sh = new StoreHour(); sh.HoursID = storeHour.Id; sh.StartTime = storeHour.OpeningTime; sh.EndTime = storeHour.ClosingTime; sh.Active = storeHour.Active; return(sh); }
public static StoreHourDAO MapToStoreHourDAO(StoreHour storeHour) { var sh = new StoreHourDAO(); sh.Id = storeHour.HoursID; sh.OpeningTime = storeHour.StartTime; sh.ClosingTime = storeHour.EndTime; sh.Active = storeHour.Active; return(sh); }