public ActionResult DeleteConfirmed(int id)
        {
            ms_depreciation_type ms_depreciation_type = db.ms_depreciation_type.Find(id);

            db.ms_depreciation_type.Remove(ms_depreciation_type);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "depreciation_type_id,depreciation_type_code,depreciation_type_name,fl_active,created_date,created_by,update_date,update_by,deleted_date,deleted_by,org_id")] ms_depreciation_type ms_depreciation_type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ms_depreciation_type).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ms_depreciation_type));
 }
        // GET: depreciation_type/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ms_depreciation_type ms_depreciation_type = db.ms_depreciation_type.Find(id);

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