public async Task <IEnumerable <CatListingServiceModel> > Mine() { var userId = _user.GetId(); var cats = await this._catService.ByUser(userId); return(cats); }
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); }
public async Task <IEnumerable <JobListingServiceModel> > GetJobsForUser() => await _service.GetActiveJobsForUser(_currentUserService.GetId());