Exemplo n.º 1
0
        public async Task <Redirect> AddRedirectAsync(Redirect newRedirect)
        {
            await _context.AddAsync(newRedirect);

            newRedirect.SetHash();
            await _context.SaveChangesAsync();

            return(newRedirect);
        }