public ActionResult Index(int?page, string FName) { var x = new StaffBL(); if (FName != null) { return(View(x.SearchByName(FName))); } else { return(View(x.GetAllStaff())); } }
public string GetStaff() { Function fun = new Function(); return(fun.DataTableToJSONWithJSONNet(sbl.GetAllStaff())); }