public JsonResult GetEventSubTypesJson(string q, int page, int page_limit) { dbOperation = new DbEventSubTypes(); var data = ((DbEventSubTypes)dbOperation).getEventSubTypes(q, null, 0, page, page_limit); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetEventSubTypesJson_Institute(string q, int?typeId, int page, int page_limit) { dbOperation = new DbEventSubTypes(); var data = ((DbEventSubTypes)dbOperation).getEventSubTypes(q, typeId, (int)EventCategory.InstituteEvent, page, page_limit); return(Json(data, JsonRequestBehavior.AllowGet)); }
//person public JsonResult EventSubTypesInitJson_Person(int?value) { dbOperation = new DbEventSubTypes(); var data = ((DbEventSubTypes)dbOperation).EventSubTypesInit(value); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetEventSubTypesJson_ByCategory(string q, int?category_id, int?typeId, int page, int page_limit) { if (category_id == null) { category_id = 0; } dbOperation = new DbEventSubTypes(); var data = ((DbEventSubTypes)dbOperation).getEventSubTypes(q, typeId, (int)category_id, page, page_limit); return(Json(data, JsonRequestBehavior.AllowGet)); }
public EventSubTypesController() { dbOperation = new DbEventSubTypes(); EventSubTypeOperations = (DbEventSubTypes)dbOperation; }