コード例 #1
0
 public Designation Update([FromBody] Designation request)
 {
     _logger.LogInformation("Designation Update");
     _context.Entry(request).State = EntityState.Modified;
     _context.SaveChanges();
     return(request);
 }
コード例 #2
0
 public Employee Update([FromBody] Employee request)
 {
     _logger.LogInformation("Employee Update");
     _context.Entry(request).State = EntityState.Modified;
     _context.SaveChanges();
     return(request);
 }