public async Task <WrapperSimpleTypesDTO> CrearNoticiasContenidos(List <NoticiasContenidos> noticiaContenidoParaCrear) { using (SportsGoEntities context = new SportsGoEntities(false)) { NoticiasRepository noticiaRepo = new NoticiasRepository(context); noticiaRepo.CrearNoticiasContenidos(noticiaContenidoParaCrear); WrapperSimpleTypesDTO wrapperCrearNoticiasContenidos = new WrapperSimpleTypesDTO(); wrapperCrearNoticiasContenidos.NumeroRegistrosAfectados = await context.SaveChangesAsync(); if (wrapperCrearNoticiasContenidos.NumeroRegistrosAfectados > 0) { wrapperCrearNoticiasContenidos.Exitoso = true; } return(wrapperCrearNoticiasContenidos); } }