public ActionResult CreateBranchFirstBranch(UserCompanyModel userCompany)
 {
     if (_type == "CompanyEmployee")
     {
         ViewBag.Type = "CompanyEmployee";
         BranchAccess ba = new BranchAccess();
         userCompany.Branch.BranchCode = ba.createBranchCode(_userCompany.Company.CompanyCode);
         _userCompany.Branch           = userCompany.Branch;
         _userCompany.Branch.StateId   = userCompany.StateId;
         CompanyAccess ca = new CompanyAccess();
         //if (ca.SetupCompany(_userCompany))
         if (ca.SetupCompanyRollback(_userCompany))
         {
             ViewBag.SuccessMsg = "Company is successfully setup";
             return(View());
         }
         else
         {
             ViewBag.ErrorMsg = "Failed to setup company";
             return(RedirectToAction("CreateFirstSuperUser", "CreateUser"));
         }
     }
     return(View());
 }