Example #1
0
        public ActionResult <Developer> AddDeveloper()
        {
            List <Developer> entities = new();

            entities.Add(new Developer
            {
                Id       = 10,
                Name     = "Test",
                Age      = 40,
                Follower = "260000"
            });
            entities.Add(new Developer
            {
                Id       = 20,
                Name     = "Test2",
                Age      = 60,
                Follower = "500000"
            });
            _repository.AddRange(entities);

            return(Ok(entities));
        }