コード例 #1
0
        public async Task <IActionResult> EditEmpresa(Empresa empresa)
        {
            if (ModelState.IsValid)
            {
                await empresaDAO.Edit(empresa);

                return(RedirectToAction("Index"));
            }
            else
            {
                HttpContext.Response.StatusCode = 400;
                return(View(empresa));
            }
        }