Last active
December 4, 2020 15:21
-
-
Save vertonghenb/b84bf7402b4093636ce87e8b7a45c0c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ProductDto{ | |
public class CreateRequest{ | |
public Guid Id {get;set;} | |
public string Name {get;set;} | |
} | |
public class CreateResponse { | |
public Guid Id {get;set;} | |
} | |
public class Item { | |
public Guid Id {get;set;} | |
public string Name {get;set;} | |
// deze slaan we op in de state? | |
} | |
public class IndexRequest{ | |
public string SearchTerm {get;set;} | |
// Other stuff | |
} | |
public class IndexResponse{ | |
public int TotalAmount {get;set;} | |
public ICollection<Item> Items {get;set;} | |
} | |
public class DetailRequest{ | |
public Guid Id {get;set;} | |
// Other stuff | |
} | |
public class DetailResponse{ | |
public Item Items {get;set;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment