public static YogaMenus ToEntity(ViewYogaMenus model) { YogaMenus item = new YogaMenus(); item.Id = model.Id; item.name = model.name; item.url = model.url; return(item); }
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); }