public static List <VMShift> Parse(List <Shift> models) { List <VMShift> results = new List <VMShift>(); foreach (var model in models) { results.Add(VMShift.Parse(model)); } return(results); }
public static VMShift Parse(Shift model) { VMShift result = new VMShift { ShiftId = model.ShiftId, Date = model.Date, StartTime = model.StartTime, EndTime = model.EndTime, CreateDate = model.CreateDate, DepartmentId = model.DepartmentId, UserId = model.UserId, IsNotify = model.IsNotify, IsActive = model.IsActive }; return(result); }