Exemplo n.º 1
0
        public async Task <NotificationResult> InsertAsync(RecipeInfo item)
        {
            var result = new NotificationResult();

            try
            {
                await _context.AddAsync(item);

                item.SetId(_context.SaveChanges());
            }
            catch (Exception ex)
            {
                result.AddError(ex);
            }

            return(result);
        }