I have faced with some strange behavior and I hope you will be able to tell, what I do wrong.
My goal is to change the order of some object. This object has property Priority which defines the order. Objects render as a list and user can drag elements for prepare order. When user click save, JS code modifies Priority property in hidden fields in accordance with order of elements in the list. And this form is sent to the server.
Action get method in the controller:
public ActionResult EditPriority()
return View(_missionRepository.OrderBy(mission => mission.Priority).ToList());
Action post method:
View Complete Post