Ejemplo n.º 1
0
        public async override Task <bool> AddIfNotExists(CsvRowResult row)
        {
            PublisherService service   = new PublisherService();
            Publisher        publisher = row.Entity as Publisher;

            if (await service.ExistsWithName(publisher.Name))
            {
                return(false);
            }
            else
            {
                await service.Add(publisher);

                return(true);
            }
        }