public JsonResult SaveCategoryItemsOrder(int[] idS) { string error; var result = _webStoreServices.SaveItemOrder(idS, out error); return(Json(new JsonResponseToken { success = result , message = "Courses order saved" , error = error }, JsonRequestBehavior.AllowGet)); }