Esempio n. 1
0
        public async Task <IActionResult> Delete([FromRoute] int jobOfferId)
        {
            int userId = int.Parse(HttpContext.User.Identity.Name);

            bool found = await _jobOfferService.DeleteAsync(jobOfferId, userId);

            if (found)
            {
                return(StatusCode(204));
            }
            return(StatusCode(404));
        }