예제 #1
0
        public async Task <ActionResult <Models.Environment> > PostEnvironment(Models.Environment Environment)
        {
            _context.Environments.Add(Environment);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(PostEnvironment), new { id = Environment.id }, Environment));
            //_context.TodoItems.Add(item);
            //await _context.SaveChangesAsync();
            //return CreatedAtAction(nameof(GetTodoItem), new { id = item.Id }, item);
        }