Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GET: <#= routePrefix #>/Restore/5
- <# if (UseAsync) { #>
- public async Task<ActionResult> Restore(<#= primaryKeyNullableTypeName #> id)
- <# } else { #>
- public ActionResult Restore(<#= primaryKeyNullableTypeName #> id)
- <# } #>
- {
- if (id == null)
- {
- return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
- }
- <# if (UseAsync) { #>
- <#= ModelTypeName #> <#= ModelVariable #> = await db.<#= entitySetName #>.FindAsync(id); ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement