示例#1
0
        public void Save(string serviceName, string price, account cont)
        {
            HotelEntities context = new HotelEntities();

            context.AddService(serviceName, int.Parse(price));
            context.SaveChanges();
            MainViewModel.Instance.ActiveScreen = new ServicesViewModel(cont);
        }