예제 #1
0
        public async Task<ActionResult<Skill>> Post(Skill item)
        {
            _context.Skills.Add(item);
            await _context.SaveChangesAsync();

            return CreatedAtAction(nameof(Get), new { id = item.Id }, item);
        }
예제 #2
0
        public async Task <ActionResult <Opportunity> > Post(Opportunity item)
        {
            _context.Opportunities.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(Get), new { id = item.Id }, item));
        }