Example #1
0
        public JsonResult CheckReceivedEdit(string regNumber)
        {
            bool saveIfErr = false;

            SetViewbagArea(userContext.CourtId);
            string messageErr = "";
            DeliveryItemRecieveVM delivery = service.SaveRecieved(regNumber, saveIfErr, out messageErr);

            if (delivery == null)
            {
                return(Json(new { messageErr = messageErr }));
            }
            else
            {
                return(Json(new { delivery = delivery }));
            }
        }