public async Task <IActionResult> AddTypeAppeal(TypeAppeal typeAppeal)
        {
            var repos = new TypeAppealRepository(_context);
            await repos.Add(typeAppeal);

            return(Ok());
        }
Beispiel #2
0
        public void AddTypeAppealTest()
        {
            var type = new TypeAppeal()
            {
                Name = "TestType",
                Note = "Type create only test"
            };
            var repos = new TypeAppealRepository(new AppDbContext());

            repos.Add(type);
            repos.Delete(type);

            Assert.Pass();
        }