Example #1
0
        public async Task <IActionResult> PutCountryItem(int Id, [FromBody] Country item)
        {
            item.Id = Id;

            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }
 public async Task <int> PutCollege(College item)
 {
     _context.Entry(item).State = EntityState.Modified;
     return(await _context.SaveChangesAsync());
 }