Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            tr_depreciation tr_depreciation = db.tr_depreciation.Find(id);

            db.tr_depreciation.Remove(tr_depreciation);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "depreciation_id,asset_id,depreciation_type_id,asset_original_value,asset_original_currency_id,Currency_kurs,asset_book_value,fis_asset_residu_value,fis_asset_usefull_life,fis_ddb_precentage,mkt_asset_residu_value,mkt_asset_usefull_life,mkt_ddb_percentage,fl_active,created_date,created_by,updated_date,updated_by,deleted_date,deleted_by,org_id")] tr_depreciation tr_depreciation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tr_depreciation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tr_depreciation));
 }
Example #3
0
        // GET: depreciation/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tr_depreciation tr_depreciation = db.tr_depreciation.Find(id);

            if (tr_depreciation == null)
            {
                return(HttpNotFound());
            }
            return(View(tr_depreciation));
        }