Example #1
0
 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);
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
 protected override void Nuevo()
 {
     base.Nuevo();
     Usuario        = new UsuarioDto();
     Identificacion = new IdentificacionDto();
 }