Commit 1d3d9c2
committed
Remove duplicate check for ModelState validity
Two other minor questions:
- Why not move the check for whether the product exists to before attaching and saving? Would also remove the need for the try/catch around SaveChanges().
- Use Any() instead of Count() in the ProductExists method.1 parent f8f6042 commit 1d3d9c2
File tree
1 file changed
+0
-5
lines changed- grid/odata-v4-web-api-binding-wrappers/KendoUIMVC5/Controllers
1 file changed
+0
-5
lines changedLines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
0 commit comments