public ActionResult Index()
        {
            EmailServerClientHelper emailServerClientHelper = new EmailServerClientHelper();
            EmailServerSettingModel ObjModel = emailServerClientHelper.GetEmailServerClientDetails();

            return(View(ObjModel));
        }
 public ActionResult Index(EmailServerSettingModel ObjModel)
 {
     ModelState.Remove("EmailForTest");
     if (ModelState.IsValid)
     {
         EmailServerClientHelper emailServerClientHelper = new EmailServerClientHelper();
         int Result = emailServerClientHelper.AddUpdateEmailServerSettingsClient(ObjModel);
         if (Result == 1)
         {
             TempData["CommonMessage"] = AppLogic.setFrontendMessage(0, "Email Server settings created sucessfully");
         }
         else if (Result == 0)
         {
             TempData["CommonMessage"] = AppLogic.setFrontendMessage(0, "Email Server settings updated sucessfully");
         }
         else
         {
             TempData["CommonMessage"] = AppLogic.setFrontendMessage(2, "Email Server settings updation failed");
         }
     }
     return(Redirect(Url.Content("~/" + ClientSessionData.ClientPortalLink + "/emailsettingclient")));
 }