{"id":128,"date":"2016-10-30T12:41:38","date_gmt":"2016-10-30T12:41:38","guid":{"rendered":"http:\/\/www.softwaretraininginchennai.com\/blog\/?p=128"},"modified":"2026-01-05T07:23:43","modified_gmt":"2026-01-05T07:23:43","slug":"consume-web-api-http-service-in-mvc-solution","status":"publish","type":"post","link":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/","title":{"rendered":"Consume Web api Http service in MVC solution"},"content":{"rendered":"<div style=\"color: #000;\">\n<h2><span style=\"color: #2e75b5; font-family: Calibri; font-size: 14pt;\">Document by Vairavan &#8211; ganesanva@hotmail.com &#8211; + 919042710472<br \/>\n<\/span><\/h2>\n<p>Create a MVC solution using Code First Approach MVC Entity framework.<br \/>\nAdd a Web Api Controller Class as below,<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\" alt=\"\" \/><br \/>\nLook on the WebApiConfig.cs how the Routes are made.<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba2.png\" alt=\"\" \/><br \/>\nThe API URL can be routed as both API\/Controller\/Id and Api\/Controller\/Action\/Id by registering the Routes in Web api config.<br \/>\nAdd the Below code in Api Controller(Used for CRUD),<\/p>\n<div>\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 407px;\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border: solid #a3a3a3 1.0pt; padding: 2px; color: #000;\"><b>private UsersContext db = new UsersContext();<br \/>\n\/\/ GET api\/values<br \/>\npublic IEnumerable&lt;StudentDetails&gt; GetallStudents()<br \/>\n{<br \/>\nreturn db.StudentDbset.ToList();<br \/>\n}<br \/>\n\/\/ GET api\/values\/5<br \/>\npublic StudentDetails GetStudents(int id)<br \/>\n{<br \/>\nStudentDetails studentdetails = db.StudentDbset.Find(id);<br \/>\nreturn studentdetails;<br \/>\n}<br \/>\n[HttpPost]<br \/>\n[ActionName(&#8220;Delete&#8221;)]<br \/>\n\/\/ Post api\/values\/Delete\/5<br \/>\npublic string DeleteStudents(int id)<br \/>\n{<br \/>\nStudentDetails studentdetails = db.StudentDbset.Find(id);<br \/>\ndb.StudentDbset.Remove(studentdetails);<br \/>\ndb.SaveChanges();<br \/>\nreturn &#8220;Deleted&#8221;;<br \/>\n}<br \/>\n\/\/ POST api\/values<br \/>\n[HttpPost]<br \/>\n[ActionName(&#8220;Post&#8221;)]<br \/>\npublic void Post([FromBody]string value)<br \/>\n{<br \/>\n}<br \/>\n\/\/ PUT api\/values\/5<br \/>\npublic void Put(int id, [FromBody]string value)<br \/>\n{<br \/>\n}<br \/>\n\/\/ DELETE api\/values\/5<br \/>\npublic void Delete(int id)<br \/>\n{<br \/>\n}<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba3.png\" alt=\"\" \/><br \/>\n<span style=\"color: #595959; font-size: 9pt;\"><em>Screen clipping taken: 02-09-2016 18:44<\/em><\/span><br \/>\nThe Above Api methods can be accessed using below URL,<br \/>\nhttp:\/\/localhost:16842\/api\/Values<br \/>\nhttp:\/\/localhost:16842\/api\/Values\/5<br \/>\nhttp:\/\/localhost:16842\/api\/Values\/Delete\/5<br \/>\nThe data can be returned as JSON,Xml or any other format depends on the attribute.<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba4.png\" alt=\"\" \/><br \/>\nCreate a new HTML page in the Solution as index.html<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba5.png\" alt=\"\" \/><br \/>\nPut below code in Index.html,<\/p>\n<div>\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 520px;\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border: solid #a3a3a3 1.0pt; padding: 2px; color: #000;\"><b>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;Product App&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div&gt;<br \/>\n&lt;h2&gt;All Products&lt;\/h2&gt;<br \/>\n&lt;ul id=&#8221;products&#8221; \/&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div&gt;<br \/>\n&lt;h2&gt;Search by ID&lt;\/h2&gt;<br \/>\n&lt;input type=&#8221;text&#8221; id=&#8221;prodId&#8221; size=&#8221;5&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;button&#8221; value=&#8221;Search&#8221; onclick=&#8221;find();&#8221; \/&gt;<br \/>\n&lt;p id=&#8221;product&#8221; \/&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;script src=&#8221;http:\/\/ajax.aspnetcdn.com\/ajax\/jQuery\/jquery-2.0.3.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script&gt;<br \/>\nvar uri = &#8216;\/api\/values&#8217;;<br \/>\n$(document).ready(function () {<br \/>\n\/\/ Send an AJAX request<br \/>\n$.getJSON(uri)<br \/>\n.done(function (data) {<br \/>\n\/\/ On success, &#8216;data&#8217; contains a list of products.<br \/>\n$.each(data, function (key, item) {<br \/>\n\/\/ Add a list item for the product.<br \/>\n$(&#8216;&lt;li&gt;&#8217;, { text: formatItem(item) }).appendTo($(&#8216;#products&#8217;));<br \/>\n});<br \/>\n});<br \/>\n});<br \/>\nfunction formatItem(item) {<br \/>\nreturn item.studentName + &#8216;: $&#8217; + item.Age;<br \/>\n}<br \/>\nfunction find() {<br \/>\nvar id = $(&#8216;#prodId&#8217;).val();<br \/>\n$.getJSON(uri + &#8216;\/&#8217; + id)<br \/>\n.done(function (data) {<br \/>\n$(&#8216;#product&#8217;).text(formatItem(data));<br \/>\n})<br \/>\n.fail(function (jqXHR, textStatus, err) {<br \/>\n$(&#8216;#product&#8217;).text(&#8216;Error: &#8216; + err);<br \/>\n});<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Now the MVC Application Works with Controller web api repository and a HTML page.<br \/>\nThe output will be,<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba6.png\" alt=\"\" \/><br \/>\nClick below to download the solution,<br \/>\n<a href=\"https:\/\/1drv.ms\/u\/s!ArddhCoxftkQg6hMmGfATxDIT2rtJw\">https:\/\/1drv.ms\/u\/s!ArddhCoxftkQg6hMmGfATxDIT2rtJw<\/a><br \/>\n<strong>Reference<\/strong><br \/>\n<a href=\"http:\/\/www.asp.net\/web-api\/overview\/getting-started-with-aspnet-web-api\/tutorial-your-first-web-api\">http:\/\/www.asp.net\/web-api\/overview\/getting-started-with-aspnet-web-api\/tutorial-your-first-web-api<\/a><br \/>\n<a href=\"http:\/\/www.asp.net\/web-api\/overview\/web-api-routing-and-actions\/routing-in-aspnet-web-api\">http:\/\/www.asp.net\/web-api\/overview\/web-api-routing-and-actions\/routing-in-aspnet-web-api<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Document by Vairavan &#8211; ganesanva@hotmail.com &#8211; + 919042710472 Create a MVC solution using Code First Approach MVC Entity framework. Add a Web Api Controller Class as below, Look on the WebApiConfig.cs how the Routes are made. The API URL can be routed as both API\/Controller\/Id and Api\/Controller\/Action\/Id by registering the Routes in Web api config. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[14,22,33,50,52,53,54,64,79,101,159],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-mvc-training-tutorials","category-uncategorized","tag-net-training-in-chennai","tag-asp-net-web-api-tutorial","tag-consume-web-api-in-mvc","tag-dot-net-training-in-ekkaduthangal","tag-dot-net-training-institute-in-chennai","tag-dot-net-web-api-in-mvc","tag-dot-net-web-service-training-in-chennai","tag-download-web-api-solution","tag-how-to-consume-web-api-in-mvc-solution","tag-mvc-with-web-api","tag-web-api-example"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Consume Web api Http service in MVC solution | Maria Academy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Consume Web api Http service in MVC solution | Maria Academy\" \/>\n<meta property=\"og:description\" content=\"Document by Vairavan &#8211; ganesanva@hotmail.com &#8211; + 919042710472 Create a MVC solution using Code First Approach MVC Entity framework. Add a Web Api Controller Class as below, Look on the WebApiConfig.cs how the Routes are made. The API URL can be routed as both API\/Controller\/Id and Api\/Controller\/Action\/Id by registering the Routes in Web api config. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\" \/>\n<meta property=\"og:site_name\" content=\"Maria Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DotnetTrainingChennai\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-30T12:41:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-05T07:23:43+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dotnettraining2\" \/>\n<meta name=\"twitter:site\" content=\"@dotnettraining2\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e\"},\"headline\":\"Consume Web api Http service in MVC solution\",\"datePublished\":\"2016-10-30T12:41:38+00:00\",\"dateModified\":\"2026-01-05T07:23:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\"},\"wordCount\":471,\"image\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\",\"keywords\":[\".net training in Chennai\",\"Asp.net web api tutorial\",\"Consume web api in MVC\",\"Dot net training in Ekkaduthangal\",\"dot net training institute in Chennai\",\"Dot net web api in MVC\",\"Dot net web service training in chennai\",\"Download web api solution\",\"how to consume web api in MVC solution\",\"MVC with web api\",\"web api example\"],\"articleSection\":[\"MVC Training Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\",\"url\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\",\"name\":\"Consume Web api Http service in MVC solution | Maria Academy\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\",\"datePublished\":\"2016-10-30T12:41:38+00:00\",\"dateModified\":\"2026-01-05T07:23:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage\",\"url\":\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\",\"contentUrl\":\"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Consume Web api Http service in MVC solution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/#website\",\"url\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/\",\"name\":\"Maria Academy\",\"description\":\"Dot Net Training in Chennai, Best Dot Net Training Institute in Chennai, .Net Training in Chennai\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Consume Web api Http service in MVC solution | Maria Academy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/","og_locale":"en_US","og_type":"article","og_title":"Consume Web api Http service in MVC solution | Maria Academy","og_description":"Document by Vairavan &#8211; ganesanva@hotmail.com &#8211; + 919042710472 Create a MVC solution using Code First Approach MVC Entity framework. Add a Web Api Controller Class as below, Look on the WebApiConfig.cs how the Routes are made. The API URL can be routed as both API\/Controller\/Id and Api\/Controller\/Action\/Id by registering the Routes in Web api config. [&hellip;]","og_url":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/","og_site_name":"Maria Academy","article_publisher":"https:\/\/www.facebook.com\/DotnetTrainingChennai","article_published_time":"2016-10-30T12:41:38+00:00","article_modified_time":"2026-01-05T07:23:43+00:00","og_image":[{"url":"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@dotnettraining2","twitter_site":"@dotnettraining2","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#article","isPartOf":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/"},"author":{"name":"admin","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e"},"headline":"Consume Web api Http service in MVC solution","datePublished":"2016-10-30T12:41:38+00:00","dateModified":"2026-01-05T07:23:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/"},"wordCount":471,"image":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage"},"thumbnailUrl":"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png","keywords":[".net training in Chennai","Asp.net web api tutorial","Consume web api in MVC","Dot net training in Ekkaduthangal","dot net training institute in Chennai","Dot net web api in MVC","Dot net web service training in chennai","Download web api solution","how to consume web api in MVC solution","MVC with web api","web api example"],"articleSection":["MVC Training Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/","url":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/","name":"Consume Web api Http service in MVC solution | Maria Academy","isPartOf":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage"},"image":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage"},"thumbnailUrl":"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png","datePublished":"2016-10-30T12:41:38+00:00","dateModified":"2026-01-05T07:23:43+00:00","author":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e"},"breadcrumb":{"@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#primaryimage","url":"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png","contentUrl":"http:\/\/www.softwaretraininginchennai.com\/blog\/wp-content\/uploads\/2016\/10\/103016_1241_ConsumeWeba1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/consume-web-api-http-service-in-mvc-solution\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwaretraininginchennai.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Consume Web api Http service in MVC solution"}]},{"@type":"WebSite","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/#website","url":"https:\/\/www.softwaretraininginchennai.com\/blog\/","name":"Maria Academy","description":"Dot Net Training in Chennai, Best Dot Net Training Institute in Chennai, .Net Training in Chennai","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwaretraininginchennai.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.softwaretraininginchennai.com\/blog\/#\/schema\/person\/e7dbda3490333ae356b6ad09076c8a6e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f68fba18793457e0192658e2fe53431c0fb4a1d551aef61c57c1847324110d80?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":2,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":1725,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/1725"}],"wp:attachment":[{"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretraininginchennai.com\/blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}