public async Task <bool> Bloquear(CiaBlkVM model) { var cia = await _context.Cias.FindAsync(model.cia_id); if (cia == null) { return(false); } cia.bloqueada = true; cia.f_aplica_bloqueo = model.fecha; _context.Cias.Update(cia); await _context.SaveChangesAsync(); return(true); }
public async Task <IActionResult> Bloquear([FromBody] CiaBlkVM modelo) { await _servicioCia.Bloquear(modelo); return(Ok()); }