예제 #1
0
 // Control the view of maintainer main page
 // GET: Maintainer
 public ActionResult Index()
 {
     try
     {
         // Set the LastMaintainerID as the current logged-in user
         return(View(Maintainer.GetWeatherInfos(User.Identity.Name).ToList()));
     }
     catch (Exception e)
     {
         return(View("Error", new HandleErrorInfo(e, "Maintainer", "Index")));
     }
 }