示例#1
0
        public async Task <Result <int> > CreateListing(BusinessListingModel businessListingModels)
        {
            var result = new Result <int>();

            result.WasSuccessful = false;

            await _listingCreationService.CreateListing(businessListingModels);

            result.WasSuccessful = true;

            return(result);
        }
示例#2
0
        public async Task <Result <int> > CreateListing(WebUserProfileModel webUserProfileModel, BusinessListingModel businessListingModels)
        {
            var result = new Result <int>();

            result.WasSuccessful = false;
            var userProfileId = await _userProfileService.CreateUserProfile(webUserProfileModel);

            businessListingModels.UserAccountId = userProfileId;
            await _listingCreationService.CreateListing(businessListingModels);

            result.WasSuccessful = true;
            result.SuccessValue  = userProfileId;
            return(result);
        }