コード例 #1
0
        public async Task <ActionResult> Create(CustomerModel model)
        {
            if (ModelState.IsValid)
            {
                await _customerService.CreateAsync(model.ToEntity());

                return(RedirectToAction("Index"));
            }
            return(View(model));
        }