public JsonResult ChangeOrder(int id, bool up) { var model = Svc.InstructorRoles.FindById(id); if (model == null) { return(Json(false)); } Svc.ChangeOrder(model, up); Svc.Commit(); return(Json(true)); }