Example #1
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                throw new KuArgNullException();
            }

            await _service.SaveAsync(Dto);

            return(Json(true));
        }
Example #2
0
        public async Task <IActionResult> Save(DeliveryTempletDto model)
        {
            await _service.SaveAsync(model);

            return(JsonData(true));
        }