SHARE
TWEET

Untitled

a guest Feb 27th, 2012 48 Never
  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. }
RAW Paste Data
Top