Guest User

Untitled

a guest
Feb 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class QuestionDto
  2. {
  3. public bool disabled {get;set;}
  4. public int id {get;set;}
  5. public int order {get;set;}
  6. public PositionDto pagePosition {get;set;}
  7. public string title {get;set;}
  8. }
  9.  
  10. public enum PositionDto
  11. {
  12. FullWidth = 0,
  13. Half = 1
  14. }
  15.  
  16. [Route("")]
  17. [HttpGet]
  18. [ResponseType(typeof(QuestionDto))]
  19. public async Task<IHttpActionResult> GetCategoryQuestions()
  20. {
  21. return Ok(new QuestionDto { PagePosition = PagePositionDto.Half });
  22. }
Add Comment
Please, Sign In to add comment