Exemplo n.º 1
0
        public async Task <IActionResult> CreatePost(CreateRequestViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            await _service.CreateRequestAsync(model.ToModel());

            return(RedirectToAction("Index"));
        }