Example #1
0
        public static Library.Color MapColor(Entities.Colors dbmodel)
        {
            Library.Color result = new Library.Color
            {
                Color_id = dbmodel.ColorId,
                Name     = dbmodel.Color
            };

            return(result);
        }
Example #2
0
        /* Color mapping */

        public static Entities.Colors MapColor(Library.Color model)
        {
            Entities.Colors result = new Entities.Colors
            {
                ColorId = model.Color_id,
                Color   = model.Name
            };

            return(result);
        }