public async Task <IActionResult> DivisionCreate([Bind("Id,DivisionName,DivisionCode")] Division division) { if (!ModelState.IsValid) { return(View(division)); } division.DivisionCode = division.DivisionCode.ToUpper(); // Check that code is unique await _wpbService.CreateDivisionAsync(division); return(RedirectToAction(nameof(DivisionsAll))); }