public async Task <bool> Delete(int id) { var delete = context.HorasAcomuladasDev.FirstOrDefault(x => x.Id == id); context.Entry(delete).State = EntityState.Deleted; await context.SaveChangesAsync(); return(true); }
public async Task <bool> Delete(int id) { var delete = context.Desenvolvedores.FirstOrDefault(x => x.DesenvolvedorTableId == id); context.Entry(delete).State = EntityState.Deleted; await context.SaveChangesAsync(); return(true); }