public async Task <ActionResult> NuovaStampa(BaseRequest <EmendamentiDto, StampaDto> model)
        {
            object UIDAtto;

            model.param.TryGetValue("UIDAtto", out UIDAtto);
            object DA;

            model.param.TryGetValue("Da", out DA);
            object A;

            model.param.TryGetValue("A", out A);
            object client_mode;

            model.param.TryGetValue("CLIENT_MODE", out client_mode);
            object ordine;

            model.param.TryGetValue("Ordine", out ordine);
            model.entity = new StampaDto
            {
                UIDAtto     = new Guid(UIDAtto.ToString()),
                Da          = Convert.ToInt16(DA),
                A           = Convert.ToInt16(A),
                Ordine      = Convert.ToInt32(ordine),
                CLIENT_MODE = Convert.ToInt32(client_mode)
            };
            var apiGateway = new ApiGateway(_Token);
            await apiGateway.Stampe.InserisciStampa(model);

            return(Json(Url.Action("Index", "Stampe"), JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public async Task <ActionResult> NuovaStampa(BaseRequest <EmendamentiDto, StampaDto> model)
        {
            object UIDAtto;

            model.param.TryGetValue("UIDAtto", out UIDAtto);
            object DA;

            model.param.TryGetValue("Da", out DA);
            object A;

            model.param.TryGetValue("A", out A);
            model.entity = new StampaDto
            {
                UIDAtto = new Guid(UIDAtto.ToString()),
                Da      = Convert.ToInt16(DA),
                A       = Convert.ToInt16(A)
            };

            await ApiGateway.InserisciStampa(model);

            return(Json(Url.Action("Index", "Stampe"), JsonRequestBehavior.AllowGet));
        }