Beispiel #1
0
 /// <summary>
 /// 転送先・メインページ
 /// </summary>
 /// <returns></returns>
 public ActionResult Index()
 {
     //session値チェック
     if (Session["LoginId"] == null)
     {
         return(RedirectToAction("Account", "Account/LogOn", new { url = Request.Url }));
     }
     try
     {
         ViewData["bkList"] = bkService.GetBackupServerList();
     }
     catch (Exception ex)
     {
         ViewData["bkList"] = new List <BackupServer>();
         logger.Error(ex.Message);
     }
     return(View());
 }
Beispiel #2
0
 /// <summary>
 /// 明細設定ページ
 /// </summary>
 /// <returns></returns>
 public ActionResult DetailEdit(int id)
 {
     try
     {
         ViewData["serverList"]   = sService.GetBackupServerList();
         ViewData["groupList"]    = groupSerivce.GetBackupServerGroupList();
         ViewData["selectList"]   = sService.GetGroupBackupServerList(id.ToString());
         ViewData["unSelectList"] = sService.GetPartBackupServerList(id.ToString());
         ViewData["groupId"]      = id.ToString();
     }
     catch (Exception ex)
     {
         ViewData["serverList"]   = new List <BackupServer>();
         ViewData["groupList"]    = new List <BackupServerGroup>();
         ViewData["selectList"]   = new List <BackupServer>();
         ViewData["unSelectList"] = new List <BackupServer>();
         ViewData["groupId"]      = "";
         logger.Error(ex.Message);
     }
     return(View());
 }