Beispiel #1
0
        public async Task <string> AddOrUpdateTaskAsync(TaskModel task)
        {
            var entry = await context.AddOrUpdateAsync(task);

            await context.SaveChangesAsync();

            return(entry.Entity.Id !);
        }