public List <ViewYogaDicItem> GetYogaDicItemList()
        {
            List <YogaDicItem> list = Repository.GetYogaDicItemList();

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

            foreach (var item in list)
            {
                model.Add(ViewYogaDicItem.ToViewModel(item));
            }
            return(model);
        }
        public List <ViewYogaDicItem> GetYogaDicItemPageList(string where, int Gender, int YogisLevel, string YogaTypeid, int page, int pagesize, out int count)
        {
            List <YogaDicItem> list = Repository.GetYogaDicItemPageList(where, Gender, YogisLevel, YogaTypeid, page, pagesize, out count);

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

            foreach (var item in list)
            {
                model.Add(ViewYogaDicItem.ToViewModel(item));
            }
            return(model);
        }
 public ViewYogaDicItem GetYogaDicItemByItemName(string ItemName)
 {
     return(ViewYogaDicItem.ToViewModel(Repository.GetYogaDicItemByItemName(ItemName)));
 }
 public ViewYogaDicItem GetById(int id)
 {
     return(ViewYogaDicItem.ToViewModel(Repository.Get(id)));
 }
        public List <ViewYogaDicItem> GetSelectList(string ids)
        {
            List <YogaDicItem> list = Repository.GetSelectList(ids);

            return((from d in list select ViewYogaDicItem.ToViewModel(d)).ToList());
        }