예제 #1
0
 public IActionResult Create()
 {
     if (HttpContext.Session.GetString("ID") == null)
     {
         return(RedirectToAction("Login", "Admin"));
     }
     else
     {
         ViewBag.listAllCities = officeRepository.listAllCities();
         return(View());
     }
 }