public async Task <ActionResult> DeleteApplication(int jobID) { var jobSeekerUser = (JobSeekerUser)(await UserManager.FindByIdAsync(User.Identity.GetUserId())); await bll.DeleteApplication(jobSeekerUser.JobSeekerID.Value, jobID); return(RedirectToAction("Applications")); }
public async Task <IHttpActionResult> DeleteApplication(int jobSeekerId, int jobId) { await bll.DeleteApplication(jobSeekerId, jobId); return(StatusCode(HttpStatusCode.NoContent)); }