public async Task <ActionResult <CIExecution> > Get(int id) { CIExecution cIExecution = await _db.CIExecutions.FirstOrDefaultAsync(f => f.Id == id); if (cIExecution == null) { return(NotFound()); } return(cIExecution); }
public async Task <ActionResult <CIExecution> > Post(CIExecution value) { if (value == null) { BadRequest(); } _db.CIExecutions.Add(value); await _db.SaveChangesAsync(); return(Ok()); }
public async Task <ActionResult <Feature> > Delete(int id) { CIExecution cIExecution = await _db.CIExecutions.FirstOrDefaultAsync(f => f.Id == id); if (cIExecution == null) { NotFound(); } _db.CIExecutions.Remove(cIExecution); await _db.SaveChangesAsync(); return(Ok()); }
public async Task <ActionResult <CIExecution> > Put(int id, CIExecution value) { if (value == null) { BadRequest(); } if (!_db.CIExecutions.Any(f => f.Id == id)) { return(NotFound()); } _db.CIExecutions.Update(value); await _db.SaveChangesAsync(); return(Ok()); }
public void DeleteCIExecution(CIExecution ciExecution) { throw new NotImplementedException(); }