public ActionResult edit(Batch obj) { obj.CompanyID = this.Company.ToLower(); obj.ModificationDate = Utility.GetCurrentDateInt(); obj.ModificationTime = Utility.GetCurrentTimeInt(); obj.ModifiedBy = LoggedUserID; _db.EditBatch(obj); return(RedirectToAction("index")); }