File tree Expand file tree Collapse file tree 5 files changed +5
-60
lines changed Expand file tree Collapse file tree 5 files changed +5
-60
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,8 @@ public async Task<IActionResult> Patch(
168168 var targetTodo = this . _todoContext . Todos . Where ( t => t . Owner == cp . UserId ) . FirstOrDefault ( t => t . Id == id ) ;
169169 if ( targetTodo == null )
170170 return new NotFoundResult ( ) ;
171-
172- //targetTodo.Id = newTodo.Id;
173- targetTodo . Title = newTodo . Title ;
171+
172+ targetTodo . Title = newTodo . Title ?? targetTodo . Title ;
174173 targetTodo . Completed = newTodo . Completed ;
175174
176175 await this . _todoContext . SaveChangesAsync ( ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
33
4- echo " Preparing sample for v2 .0..."
4+ echo " Preparing sample for v3 .0..."
55
66# cleanup API binaries
7- echo " Cleaning ./api ..."
87rm -rf ./api/bin
98rm -rf ./api/obj
109
1110# cleanup CLIENT
12- echo " Cleaning ./client ..."
1311rm -rf ./client/node_modules
1412rm -rf ./client/dist
13+ rm -rf ./client/src
1514
1615# cleanup DATABASE
17- echo " Cleaning ./database ..."
1816rm -rf ./database/declarative-deploy
1917rm -rf ./database/imperative-deploy
2018rm -rf ./database/deploy/bin
2119rm -rf ./database/deploy/obj
2220
2321# cleanup TEST
24- echo " Cleaning ./test ..."
2522rm -rf ./test
2623
2724echo " Done"
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ <h1>todos</h1>
6565
6666< script src ="https://unpkg.com/vue@2.6.14 "> </ script >
6767< script >
68- API = "api/todo/" ;
68+ API = "api/ef/ todo/" ;
6969HEADERS = { 'Accept' : 'application/json' , 'Content-Type' : 'application/json' } ;
7070
7171// visibility filters
You can’t perform that action at this time.
0 commit comments