Пример #1
0
        public static YogaMenus ToEntity(ViewYogaMenus model)
        {
            YogaMenus item = new YogaMenus();

            item.Id   = model.Id;
            item.name = model.name;
            item.url  = model.url;
            return(item);
        }
Пример #2
0
        public static ViewYogaMenus ToViewModel(YogaMenus model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewYogaMenus item = new ViewYogaMenus();

            item.Id   = model.Id;
            item.name = model.name;


            return(item);
        }