Esempio n. 1
0
 public async Task <IActionResult> Create([Bind("BranchNo,City,Street,Director")] Branch branch)
 {
     if (ModelState.IsValid)
     {
         _service.AddNewBranch(branch);
         return(RedirectToAction("Index"));
     }
     return(View(branch));
 }