Esempio n. 1
0
 public IEnumerable <Point> Post([FromBody] IEnumerable <Point> point)
 {
     db.Points.AddRange(point);
     db.SaveChanges();
     return(point);
 }
Esempio n. 2
0
 public User Post([FromBody] User user)
 {
     db.Users.Add(user);
     db.SaveChanges();
     return(user);
 }
Esempio n. 3
0
 public Station PostStation([FromBody] Station station)
 {
     db.Stations.Add(station);
     db.SaveChanges();
     return(station);
 }