Example #1
0
        public async Task <IEnumerable <CatListingServiceModel> > Mine()
        {
            var userId = _user.GetId();
            var cats   = await this._catService.ByUser(userId);

            return(cats);
        }
Example #2
0
        public async Task <ProfileServiceModel> Details(string id)
        {
            var includeAllInformation = await this.follows.IsFollower(id, currentUser.GetId());

            if (!includeAllInformation)
            {
                includeAllInformation = await this.profiles.IsPublic(id);
            }
            await this.profiles.ByUser(id, includeAllInformation);

            return(null);
        }
Example #3
0
 public async Task <IEnumerable <JobListingServiceModel> > GetJobsForUser() => await _service.GetActiveJobsForUser(_currentUserService.GetId());