public HttpResponseMessage DeleteJobApplication(int ApplicantKey, int JobKey)
        {
            _jobApplicationService.Delete(ApplicantKey, JobKey);
            SuccessResponse response = new SuccessResponse();

            return(Request.CreateResponse(HttpStatusCode.OK, response));
        }
예제 #2
0
        public HttpResponseMessage Delete(int id)
        {
            _jobApplicationService.Delete(id);

            SuccessResponse response = new SuccessResponse();

            return(Request.CreateResponse(HttpStatusCode.OK, response));
        }
예제 #3
0
        public async Task DeleteApplication(int id, EmployerDto deletingEmployer)
        {
            using (var uow = UnitOfWorkProvider.Create())
            {
                if ((await jobApplicationService.GetAsync(id)).JobOffer.Employer.Id != deletingEmployer.Id)
                {
                    throw new ArgumentException();
                }

                jobApplicationService.Delete(id);
                await uow.Commit();
            }
        }
        public IActionResult DeleteConfirmed(string id)
        {
            jobApplicationService.Delete(id);

            return(RedirectToAction(nameof(Index)));
        }
 public IActionResult Delete(string id)
 {
     jobApplicationService.Delete(id);
     return(RedirectToAction("MyJobApplications"));
 }