public ActionResult NewUser(UserDetails userDetails)
        {
            UserDetails userDet = new UserDetails();

            userDet.roleDetails    = _IRole.GetAllRoles();
            userDet.companyDetails = _ICompanyDetails.GetCompanyList();

            return(View(userDet));
        }
        public ActionResult ViewCompany()
        {
            var companyCollection = _ICompanyDetails.GetCompanyList();
            List <CompanyDetails> comptDetails = new List <CompanyDetails>();

            foreach (var items in companyCollection)
            {
                CompanyDetails customerDet = new CompanyDetails();
                customerDet.CompanyName      = items.CompanyName;
                customerDet.CompanyID        = items.CompanyID;
                customerDet.BillingAddress   = items.BillingAddress;
                customerDet.BillingAddress1  = items.BillingAddress1;
                customerDet.BillingCity      = items.BillingCity;
                customerDet.BillingState     = items.BillingState;
                customerDet.BillingCountry   = items.BillingCountry;
                customerDet.BillingPincode   = items.BillingPincode;
                customerDet.ShippingAddress  = items.ShippingAddress;
                customerDet.ShippingAddress1 = items.ShippingAddress1;
                customerDet.ShippingCity     = items.ShippingCity;
                customerDet.ShippingState    = items.ShippingState;
                customerDet.ShippingCountry  = items.ShippingCountry;
                customerDet.ShippingPincode  = items.ShippingPincode;
                customerDet.PrimaryMailID    = items.PrimaryMailID;
                customerDet.PrimaryPhoneNo   = items.PrimaryPhoneNo;
                customerDet.Fax = items.Fax;
                customerDet.IndustryCategoryId = items.IndustryCategoryId;
                comptDetails.Add(customerDet);
            }
            return(View(comptDetails));
        }
예제 #3
0
 public List <CompanyDetails> GetCompanyList()
 {
     return(_ICompanyDetails.GetCompanyList());
 }
 public ActionResult Company()
 {
     return(View(_ICompanyDetails.GetCompanyList()));
 }