如何在mvc中使用web api [英] how to use web api in mvc

查看:94
本文介绍了如何在mvc中使用web api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii

我已经创建了一个web api控制器,并且在方法中我编写了select和Edit的代码。之后我想知道如何在任何其他控制器中使用这些m3ethods或者观点,请帮助我作为全新的mvc

解决方案

你可以尝试这个教程如果您使用带有webforms的api。否则请查看此处列出的其他教程。


< blockquote>非常好的教程:使用MVC Web API和JQuery获取GET或POST数据 [ ^ ]


hii
I have created a web api controoler and with in the methods I have written the codes for select and Edit.After that i want to know how to use these m3ethods in any other controller or views,pls help me as i m completely new to mvc

解决方案

You can try this tutorial if you are using your api with webforms. otherwise look at the other tutorials listed here.


Quite excellent tutorial : MVC using Web API and JQuery to GET or POST Data[^]


这篇关于如何在mvc中使用web api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆