public JsonResult GetProduk(string NoSpb)
        {
            var data = _trnSpbBLL.GetBySPB(NoSpb);

            if (data == null)
            {
                data = new TrnSpbDto();
            }
            return(Json(data));
        }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 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;
     }
 }