public static TimeModel ToTimeModel(this M.Time model) { var time = new TimeModel() { Hour = model.Hour, Minute = model.Minute }; return(time); }
public static M.Time ToTime(this TimeModel timeModel) { var time = new M.Time(timeModel.Hour, timeModel.Minute); return(time); }