public virtual ActionResult Save(T theObject)
var existingObject = Repo.GetByMultipleValues(primaryKeys(theObject));
if (existingObject == null)
// It must be an insert operation
// It must be an update operation
// Update the existing entity with the new values
Hi Jeremy Branham,
Thanks for using Syncfusion products.
We suggest you to return partialview for the BeginEdit and BeginAddNew request type in the server mode(DialogTemplate). Please refer the below code snippets.
public ActionResult Index(PagingParams args, int? OrderID)
RequestType currentRequest = (RequestType)Convert.ToInt32(args.RequestType);
if (currentRequest == RequestType.BeginEdit)
EditableOrder ord = (EditableOrder)OrderRepository.Select(OrderID);
return PartialView("OrderEditorTemplate", ord);
else if (currentRequest == RequestType.BeginAddNew )
return PartialView("OrderEditorTemplate", new EditableOrder());
IEnumerable data = OrderRepository.GetAllRecords();
For your convenience, we have prepared a simple sample to demonstrate this and the same can be downloaded from the below link.
Please let us know if you need any further assistance.
Thank You for using Syncfusion Product.
We regret for the inconvenience caused. We are unable to reproduce the issue in our end. The previous sample which we had provided you is running without any error in Save Action and we have created a video demonstration of it. So could you please try to reproduce the issue in our sample and send us back or send your sample so that we can provide you a better solution?
Please find the attached video below.
Please let us know if you need further assistance.
Alan Sangeeth S