public ActionResult Index() { var referals = _referalRepository.GetAll("JobOpening"); var a = referals.ToList(); return(View()); }
public JsonResult Index() { var apiResult = TryExecute(() => _referalRepository.GetAll(), "Referals Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }