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