public async Task <ActionResult <OutputBase> > Delete(string id) { OutputBase result = new OutputBase(); bool isDeleted = await _jobsService.DeleteJobsAsync(id); if (isDeleted) { return(Ok(result)); } result.ErrorId = 11; result.ErrorCode = "A1"; return(BadRequest(result)); }