Exemplo n.º 1
0
        public static List <VMBreak> Parse(List <Break> models)
        {
            List <VMBreak> results = new List <VMBreak>();

            foreach (var model in models)
            {
                results.Add(VMBreak.Parse(model));
            }

            return(results);
        }
Exemplo n.º 2
0
        public static VMBreak Parse(Break model)
        {
            VMBreak result = new VMBreak
            {
                BreakId    = model.BreakId,
                StartTime  = model.StartTime,
                EndTime    = model.EndTime,
                CreateDate = model.CreateDate,
                IsActive   = model.IsActive
            };

            return(result);
        }