public async Task AddAsync(string jobOfferId, string content) { _addBearerTokenService.AddBearerToken(_client); var command = new CreateJobOfferPropositionCommand() { JobOfferId = jobOfferId, Content = content }; await _client.JobofferPropositionPostAsync(command); }
public async Task <UserDetailsViewModel> GetUserEmailAsync(string userId) { _addBearerTokenService.AddBearerToken(_client); var response = await _client.UserGetAsync(userId); return(response); }
public async Task <PaginatedMvcList <JobOfferMvcViewModel> > GetAllByCompany(string companyId) { _addBearerTokenService.AddBearerToken(_client); var responseFromApi = await _client.JobofferGetAsync(companyId, 1, 100); var items = _mapper.Map <List <JobOfferMvcViewModel> >(responseFromApi.Items); var paginatedItems = new PaginatedMvcList <JobOfferMvcViewModel>() { PageSize = responseFromApi.PageSize, PageNumber = responseFromApi.PageNumber, TotalCount = responseFromApi.TotalCount, HasNextPage = responseFromApi.HasNextPage, HasPreviousPage = responseFromApi.HasPreviousPage, NextPage = responseFromApi.NextPage, PreviousPage = responseFromApi.PreviousPage, Items = items }; return(paginatedItems); }