public ActionResult AjaxView() { var customerType = _dnNewsSscda.GetById(ArrId.FirstOrDefault()); ViewData.Model = customerType; return(View()); }
public ActionResult GetById(string key, int id) { var obj = key != Keyapi ? new DN_NewsSSC() : _dl.GetById(id);; return(Json(obj, JsonRequestBehavior.AllowGet)); }