public ActionResult EditItem([Bind(Include = "Id,TextTitle,TextBody,ActivityId,ItemTypeId,DocumentId,Status,OrderNumber")] AMActivityItem model, string ProcessId) { bool resEdit = false; AMActivityItem Obj = DMLObj.GetActivityItemById(model.Id); Obj.TextTitle = model.TextTitle; Obj.TextBody = model.TextBody; Obj.DocumentId = model.DocumentId; Obj.Document = DMLObj.GetDocumentById(model.DocumentId); DMLObj.EditActivityItem(Obj, out resEdit); if (resEdit) { return(RedirectToAction("ShowActivity", new { ActivityId = model.ActivityId, ProcessId = ProcessId })); } ViewBag.ProcessId = ProcessId; return(View(model)); }