public ActionResult Details(int id) { var referal = _referalRepository.Get(id); return(CheckForNullAndExecute(referal, () => View(referal))); }
public ActionResult Get(int id) { var apiResult = TryExecute(() => _referalRepository.Get(id), "Referal Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }