public ActionResult GetList(int?FlowerId) { int offset = Convert.ToInt32(Request["offset"]); int limit = int.Parse(Request["limit"]); StringBuilder sb = new StringBuilder(); if (FlowerId != 0) { sb.Append("FlowerId=" + FlowerId); } Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive(); return(Json(new { total = Sys_FlowerActive.GetFlowerActiveListCount(sb.ToString()), rows = Sys_FlowerActive.FlowerActiveList(limit, offset, sb.ToString()) }, JsonRequestBehavior.AllowGet)); }
private List <Model.FlowerActive> GetList() { Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive(); return(Sys_FlowerActive.FlowerActiveList(1, 1, "")); }