public List <ViewYogaMenus> GetMenusList()
        {
            List <YogaMenus>     list  = Respository.GetYogaMenusLists();
            List <ViewYogaMenus> model = new List <ViewYogaMenus>();

            foreach (var item in list)
            {
                model.Add(ViewYogaMenus.ToViewModel(item));
            }
            return(model);
        }
        public List <ViewYogaMenus> GetMenusList(int page, int pagesize, out int count)
        {
            List <YogaMenus> list = Respository.GetYogaMenusList(page, pagesize, out count);

            List <ViewYogaMenus> model = new List <ViewYogaMenus>();

            foreach (var item in list)
            {
                model.Add(ViewYogaMenus.ToViewModel(item));
            }
            return(model);
        }
 public ViewYogaMenus GetMenusByid(int id)
 {
     return(ViewYogaMenus.ToViewModel(Respository.GetMenusByid(id)));
 }