You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Net.Http;
  6. using System.Web.Http;
  7. namespace Authentication_test.Controllers
  8. {
  9. public class ValuesController : ApiController
  10. {
  11. // GET api/values
  12. public IEnumerable<string> Get()
  13. {
  14. return new string[] { "value1", "value2" };
  15. }
  16. // GET api/values/5
  17. public string Get(int id)
  18. {
  19. return "value";
  20. }
  21. // POST api/values
  22. public void Post([FromBody]string value)
  23. {
  24. }
  25. // PUT api/values/5
  26. public void Put(int id, [FromBody]string value)
  27. {
  28. }
  29. // DELETE api/values/5
  30. public void Delete(int id)
  31. {
  32. }
  33. }
  34. }