public CustomerRegisterViewModel GetCustomer(Guid idCustomer, Guid idAccount) { var model = GetNewCustomerRegisterViewModel(); var customer = _customerDao.GetCustomerById(idCustomer, idAccount); customer.Channels = _channelDao.GetChannelsByCustomerId(idCustomer, idAccount); customer.ProductCategories = _productCategoryDao.GetProductCategoriesByCustomer(idCustomer, idAccount); customer.TypeBusiness = _typeBusinessDao.GetAllTypesBusinessByIdCustomer(idCustomer, idAccount); var itemResult = ConvertCustomer.ToCustomerRegisterViewModel(customer); itemResult.Types = model.Types; itemResult.StatusCustomers = model.StatusCustomers; return(itemResult); }
public List<TypeBusiness> GetAllTypesBusinessByIdCustomer(Guid idCustomer, Guid idAccount) { return _typeBusinessDao.GetAllTypesBusinessByIdCustomer(idCustomer,idAccount); }