Пример #1
0
        private void DeleteImportBL(int JobId)
        {
            int jobId = JobBLL.DeleteJob(JobId, _userId);

            LoadImportBL();
            ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "<script>javascript:void alert('Job has been deleted successfully!');</script>", false);
        }
Пример #2
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            Job job = await bll.GetJobById(id);

            await bll.DeleteJob(job);

            return(RedirectToAction("Index"));
        }
Пример #3
0
        public async Task <IHttpActionResult> DeleteJob(int id)
        {
            Job job = await jobBLL.GetJobById(id);

            if (job == null)
            {
                return(NotFound());
            }

            await jobBLL.DeleteJob(job);

            return(Ok(job));
        }