Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enter code here
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Web.Http;
- using System.Web.Mvc;
- using ProcessQ.Models;
- using System.Web.Script.Serialization;
- namespace ProcessQ.Controllers
- {
- public class ValuesController : ApiController
- {
- // GET api/values
- public IEnumerable<string> Get()
- {
- string Json = System.IO.File.ReadAllText(@"C:UsersAlexDesktopOutput.json");
- JavaScriptSerializer ser = new JavaScriptSerializer();
- var personlist = ser.Deserialize<List<ItemsInsideProcessQ>>(Json);
- return View(personlist);
- }
- // GET api/values/5
- public string Get(int id)
- {
- return "value";
- }
- // POST api/values
- public void Post([FromBody]string value)
- {
- }
- // PUT api/values/5
- public void Put(int id, [FromBody]string value)
- {
- }
- // DELETE api/values/5
- public void Delete(int id)
- {
- }
- }
- }
Add Comment
Please, Sign In to add comment