Esempio n. 1
0
        public async Task <IActionResult> Create(StatusDto dto)
        {
            if (ModelState == null || !ModelState.IsValid)
            {
                return(View(dto));
            }
            var result = await _statusService.CreateAsync(dto);

            //TODO Ensure OK
            return(RedirectToAction(nameof(Index)));
        }