Skip to content

Instantly share code, notes, and snippets.

@vertonghenb
Last active December 4, 2020 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vertonghenb/b84bf7402b4093636ce87e8b7a45c0c6 to your computer and use it in GitHub Desktop.
Save vertonghenb/b84bf7402b4093636ce87e8b7a45c0c6 to your computer and use it in GitHub Desktop.
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