コード例 #1
0
        public ActionResult ReplicaCompany(FormCollection frmcol)
        {
            string Company = frmcol["CompanyNameWithFinancial"];

            CompanyCode  = Company.Substring(0, 9);
            DatabaseName = Company.Substring(10);
            TempData["LogedInCompanyCode"] = CompanyCode;
            TempData["BankMasters"]        = _BankService.getAllBanks();
            TempData["ClientMasters"]      = _ClientMasterService.GetAllClients();
            TempData["ClientBanks"]        = _ClientBankDetailService.GetAllClientBanks();
            TempData["DesignationMasters"] = _DesignationMasterService.getAllDesignation();
            TempData["DesignMasters"]      = _DesignService.GetAll();
            TempData["BrandMasters"]       = _BrandMasterService.GetAllBrands();
            TempData["EmployeeMasters"]    = _EmployeeMasterService.getAllemployees();
            TempData["GodownMasters"]      = _GodownService.GetGodownNames();
            TempData["GodownAddresses"]    = _GodownAddressService.GetAllGodownAddresses();
            TempData["ItemCategory"]       = _ItemCategoryService.GetItemCategories();
            TempData["ItemSubCategory"]    = _ItemSubCategoryService.GetItemSubCategories();
            TempData["ItemMasters"]        = _ItemService.getAllItems();
            TempData["NonInventoryItems"]  = _NonInventoryItemService.GetAll();
            TempData["BarcodeNumbers"]     = _BarcodeNumberService.GetAllBarcodeNumbers();
            TempData["JobWorkers"]         = _JobWorkerService.GetAll();
            TempData["JobWorkerTypes"]     = _JobWorkTypeService.GetAll();
            //TempData["SalesIncentives"] = _SalesIncentiveService.GetAllSI();
            TempData["ShopMasters"]       = _ShopService.GetAll();
            TempData["TypeOfMaterials"]   = _TypeOfMaterialService.GetMaterialList();
            TempData["UnitMasters"]       = _UnitService.getallsize();
            TempData["SupplierMasters"]   = _SuppliersMasterService.getAllSuppliers();
            TempData["SupplierBanks"]     = _SupplierBankDetailService.GetAllSupplierBanks();
            TempData["TransportMasters"]  = _TransportService.GetAllTransport();
            TempData["TransportBanks"]    = _TransportBankDetailService.GetAllTransportBanks();
            TempData["Users"]             = _UserService.getAllusers();
            TempData["CommissionMasters"] = _CommissionService.GetAll();
            TempData["Modules"]           = _ModuleService.getAllModules();
            TempData["UserCredentials"]   = _UserCredentialService.GetAllUserCredentials();
            TempData["EmployeeCompanies"] = _EmployeesCompanyService.GetAllEmployeeCompanies();
            return(RedirectToAction("ReplicateTheValues"));
        }
コード例 #2
0
        public async Task <List <UserCredentialResponseViewModel> > GetAllUserCredential()
        {
            var responce = await _contentService.GetAllUserCredentials();

            return(_mapperProfile.Map <List <UserCredentialResponseViewModel> >(responce));
        }