コード例 #1
0
        public ActionResult <List <SavingGoal> > Put([FromRoute] int id, [FromBody] NewNameViewModel NewName)
        {
            var ChangedGoal = this.db.SavingGoal.First(SavingGoal => SavingGoal.Id == id);

            ChangedGoal.Title = NewName.NewName;
            this.db.SaveChanges();
            var results = this.db.SavingGoal.OrderBy(goal => goal.Id);

            return(results.ToList());
        }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new NewNameViewModel();
 }