示例#1
0
        public JsonResult GetBarangJadi(int Id)
        {
            var data = new MstBarangJadiDto();

            data = _mstBarangJadiBLL
                   .GetById(Id);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
 public void Save(MstBarangJadiDto model)
 {
     try
     {
         var db = Mapper.Map <MST_BARANG_JADI>(model);
         _mstBarangServices.Save(db);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public void Save(MstBarangJadiDto model)
 {
     try
     {
         var db = Mapper.Map <MST_BARANG_JADI>(model);
         _mstBarangJadiRepo.InsertOrUpdate(db);
         _uow.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }
 public void Save(MstBarangJadiDto model, LoginDto LoginDto)
 {
     try
     {
         var db    = Mapper.Map <MST_BARANG_JADI>(model);
         var Login = Mapper.Map <Login>(LoginDto);
         _mstBarangServices.Save(db, Login);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public void Save(MstBarangJadiDto model, LoginDto LoginDto)
 {
     try
     {
         var db    = Mapper.Map <MST_BARANG_JADI>(model);
         var Login = Mapper.Map <Login>(LoginDto);
         _mstBarangJadiRepo.InsertOrUpdate(db, Login, MenuList.MstBarangJadi);
         _uow.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }