public IActionResult Edit(int id) { var t = _nccService.GetById(id); return(t != null?Json(t.MapTo <NccEntity>()) : Json("0")); }
public JsonResult GetNcc(int id) { //var check = _nhap.GetAll().FirstOrDefault(j => j.IsActive && j.IdNcc.Equals(id)); //if(check!=null) return(Json(_ncc.GetById(id))); }