Click here to Skip to main content
15,794,593 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to MVC Framework I am trying to create a Post Api Menthod But i want to Use Procedure

How can i do that Can You Please help me

What I have tried:

Create a Entity Model Edmx
       public IHttpActionResult OneP(One one)

           // how i use sp here

           return Json("Ok");

create procedure sp_insert (@Id int ,@Name varchar(30))as
Insert into One Values(@Id,@Name)
Updated 28-Jun-19 0:27am
F-ES Sitecore 23-Jun-19 7:47am    
Google "entity framework stored procedure" and you'll find lots of walkthroughs and explanations.

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900