Пример #1
0
        public async Task <ActionResult <JobOfferRes> > GetCustomer([FromRoute] int jobOfferId)
        {
            int userId   = int.Parse(HttpContext.User.Identity.Name);
            var response = await _jobOfferService.GetDetailCustomerAsync(jobOfferId, userId);

            if (response == null)
            {
                return(StatusCode(404));
            }
            return(StatusCode(200, response));
        }