public JsonResult GetProduk(string NoSpb) { var data = _trnSpbBLL.GetBySPB(NoSpb); if (data == null) { data = new TrnSpbDto(); } return(Json(data)); }
public void Save(TrnSpbDto model, LoginDto LoginDto) { try { var db = Mapper.Map <TRN_SPB>(model); var Login = Mapper.Map <Login>(LoginDto); _trnSpbServices.Save(db, Login); } catch (Exception) { throw; } }
public void Save(TrnSpbDto model) { try { var db = Mapper.Map <TRN_SPB>(model); _trnSpbServices.Save(db, new Login { USERNAME = "******", USER_ID = "SYSTEM" }); } catch (Exception) { throw; } }