public async Task <IActionResult> Create([Bind("IdDepartment,DepartmentName,AmountOfWorkers,DescriptionOfTheTypeOfWork")] AtelierDepartment atelierDepartment) { if (ModelState.IsValid) { _context.Add(atelierDepartment); await _context.SaveChangesAsync(); _cachedService.RefreshAtelierDepartments(); return(RedirectToAction(nameof(Index))); } return(View(atelierDepartment)); }