Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement