public int Register(User user) { _salesDBContext.User.Add(user); _salesDBContext.SaveChanges(); return(user.Id); }
public int Add(City city) { _salesDBContext.City.Add(city); _salesDBContext.SaveChanges(); return(city.Id); }