This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: C#  |  size: 0.31 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class User {
  2. public string FirstName {get;set;}
  3. }
  4.  
  5. public class Administrator : User {
  6. public string LastName {get;set;}
  7. }
  8.  
  9. public class UserController : ApiController {
  10. public void Put(string id, User user) {} // If this is an administrator, make it possible to save both firstname and lastname
  11. }
clone this paste RAW Paste Data