public ActionResult Index() { var model = new TrnSpbViewModel(); model.ListData = Mapper.Map <List <TrnSpbModel> >(_trnSpbBLL.GetAll()); model.CurrentUser = CurrentUser; model.Menu = "Surat Permintaan Barang (SPB)"; return(View(model)); }
public JsonResult GetSpbList() { var model = new List <string>(); model = _trnSpbBLL.GetAll() .Select(x => x.NO_SPB) .ToList(); return(Json(model, JsonRequestBehavior.AllowGet)); }
public JsonResult GetSpbList() { var model = _trnSpbBLL .GetAll() .Select(x => new { DATA = x.NO_SPB }) .OrderBy(X => X.DATA) .ToList(); return(Json(model, JsonRequestBehavior.AllowGet)); }