public async Task Modificar(IdentificacionDto dto) { using (var context = new DataContext()) { var identificacion = context.Identificaciones.FirstOrDefault(x => x.Id == dto.Id); await _identificacionRepositorio.Update(identificacion); } }
public async Task <long> Insertar(IdentificacionDto dto) { using (var context = new DataContext()) { var identificacion = _mapper.Map <Dominio.Entidades.Identificacion>(dto); await _identificacionRepositorio.Create(identificacion); return(identificacion.Id); } }
protected override void Nuevo() { base.Nuevo(); Usuario = new UsuarioDto(); Identificacion = new IdentificacionDto(); }