Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // GET: <#= routePrefix #>/Restore/5
  2. <# if (UseAsync) { #>
  3. public async Task<ActionResult> Restore(<#= primaryKeyNullableTypeName #> id)
  4. <# } else { #>
  5. public ActionResult Restore(<#= primaryKeyNullableTypeName #> id)
  6. <# } #>
  7. {
  8. if (id == null)
  9. {
  10. return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
  11. }
  12. <# if (UseAsync) { #>
  13. <#= ModelTypeName #> <#= ModelVariable #> = await db.<#= entitySetName #>.FindAsync(id); ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement