Exemplo n.º 1
0
        public async ValueTask <bool> AddNewSeparationAsync(Separation separation)
        {
            try
            {
                Separations.Add(new Separation()
                {
                    Address = separation.Address
                });

                await SaveChangesAsync();
            }
            catch
            {
                return(false);
            }

            return(true);
        }