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); }
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); }