public ActionResult Sample26()
 {
     // Check is data posted
     if (Request.HttpMethod == "POST")
     {
         //### Set variables and get POST data
         System.Collections.Hashtable result = new System.Collections.Hashtable();
         String login = Request.Form["login"];
         String password = Request.Form["password"];
         Groupdocs.Api.Contract.UserInfoResult userInfo = null;
         String message = null;
         // Check is all needed fields are entered
         if (login == null || password == null)
         {
             //If not all fields entered send error message
             message = "Please enter all parameters";
             result.Add("error", message);
             // Transfer error message to template
             return View("Sample26", null, result);
         }
         else
         {
             String basePath = Request.Form["basePath"];
             //Check is base path entered
             if (basePath.Equals(""))
             {
                 //If base path empty set base path to the dev server
                 basePath = "https://api.groupdocs.com/v2.0";
             }
             result.Add("basePath", basePath);
             // Create service for Groupdocs account
             GroupdocsService service = new GroupdocsService(basePath, "123", "123");
             // Get info about user account
             userInfo = service.LoginUser(login, password);
             //### Put user info to Hashtable
             result.Add("FirstName", userInfo.User.FirstName);
             result.Add("LastName", userInfo.User.LastName);
             result.Add("NickName", userInfo.User.NickName);
             result.Add("PrimaryEmail", userInfo.User.PrimaryEmail);
             result.Add("guid", userInfo.User.Guid);
             result.Add("pkey", userInfo.User.PrivateKey);
             // Return Hashtable with results to the template
             return View("Sample26", null, result);
         }
     }
     // If data not posted return to template for filling of necessary fields
     else
     {
         return View("Sample26");
     }
 }