public static List <MEnterpriseCases> GetMEnterpriseCasesAll() { DALMEnterpriseCases _DAL = new DALMEnterpriseCases(); List <MEnterpriseCases> _list = _DAL.GetMEnterpriseCasesAll(); return(_list); }
public static List <MEnterpriseCases> GetMEnterpriseCases(PageHelper page, int pageindex) { DALMEnterpriseCases _DAL = new DALMEnterpriseCases(); List <MEnterpriseCases> allList = _DAL.GetBgMEnterpriseCases(); List <MEnterpriseCases> pageList = allList.Skip(page.PageSize * (pageindex - 1)).Take(page.PageSize).ToList(); return(pageList); }
public static MEnterpriseCases GetMEnterpriseCases(int id) { DALMEnterpriseCases _DAL = new DALMEnterpriseCases(); List <MEnterpriseCases> allList = _DAL.GetBgMEnterpriseCases(); MEnterpriseCases cases = allList.SingleOrDefault(m => m.MEnterpriseCasesID == id); return(cases); }
public static void InsertMEnterpriseCases(MEnterpriseCases cases) { DALMEnterpriseCases _DAL = new DALMEnterpriseCases(); _DAL.InsertMEnterpriseCases(cases); }
public static void DeleteMEnterpriseCases(int cid) { DALMEnterpriseCases _DAL = new DALMEnterpriseCases(); _DAL.DeleteMEnterpriseCases(cid); }