public List <ViewYogiProfile> GetYogiProfilePageList(int page, int pagesize, out int count)
        {
            List <YogiProfile> list = Repository.GetYogiProfilePageList(page, pagesize, out count);

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

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

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

            foreach (var item in list)
            {
                model.Add(ViewYogiProfile.ToViewModel(item));
            }
            return(model);
        }
        public List <ViewYogiProfile> GetYogiProfileUid(int id)
        {
            List <YogiProfile> list = Repository.GetYogiProfileUid(id);

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

            foreach (var item in list)
            {
                model.Add(ViewYogiProfile.ToViewModel(item));
            }
            return(model);
        }
 public ViewYogiProfile GetYogiProfileById(int id)
 {
     return(ViewYogiProfile.ToViewModel(Repository.GetYogiProfileById(id)));
 }