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);
        }
Пример #2
0
        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);
        }