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

            return(cats);
        }
示例#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);
        }
示例#3
0
 public async Task <IEnumerable <JobListingServiceModel> > GetJobsForUser() => await _service.GetActiveJobsForUser(_currentUserService.GetId());