Exemplo n.º 1
0
        public JsonResult Reorder(int workOrderID = 0, int newOrder = 1)
        {
            ResponseMessage message;

            try
            {
                using (WorkOrderService svc = new WorkOrderService())
                {
                    svc.Reorder(workOrderID, newOrder);
                }
                message = SetResponseMesssage(ActionTypeMessage.SuccessfulSave, "Run order successfully changed.");
            }
            catch (Exception ex)
            {
                message = SetResponseMesssage(ActionTypeMessage.Error, "Unable to change run order.");
            }
            return(Json(message, JsonRequestBehavior.AllowGet));
        }