Esempio n. 1
0
        public async Task <ImageReference> Save(ImageReference imageReference)
        {
            // ReSharper disable once MethodHasAsyncOverload
            var result = _context.Images.Add(imageReference.ToModel());
            await _context.SaveChangesAsync();

            return(result.Entity.ToBusinessModel());
        }