
Untitled
By: a guest on
Feb 27th, 2012 | syntax:
C# | size: 0.31 KB | hits: 40 | expires: Never
public class User {
public string FirstName {get;set;}
}
public class Administrator : User {
public string LastName {get;set;}
}
public class UserController : ApiController {
public void Put(string id, User user) {} // If this is an administrator, make it possible to save both firstname and lastname
}