Beispiel #1
0
        public async Task <ActionResult> Create([Bind(Include = "EmployeeId,FirstName,LastName,Email,SALARY,MANAGER_ID,DEPARTMENT_ID")] Employee employee)
        {
            if (ModelState.IsValid)
            {
                await applicationService.AddEmployeeAsync(employee);

                return(RedirectToAction("Index"));
            }

            return(View(employee));
        }