Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you ruclips.net/user/kudvenkatplaylists?view=1&sort=dd If you need DVDs or to download all the videos for offline viewing please visit www.pragimtech.com/kudvenkat_dvd.aspx Slides and Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use my youtube channel. ruclips.net/video/y780MwhY70s/видео.html If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. ruclips.net/user/kudvenkat If you like these videos, please click on the THUMBS UP button below the video. May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them. Good Luck Venkat
some time i don't understand why some other unnecessary videos like jokes etc make 10 20 50M views while after very hard work this kind of post does not make even 0.5M views. Always awesome job done by venkat sir.
Thank you for the tutorials. I've found each one to be very informative. I was hoping you could post something to help resolve an error I'm receiving when trying to update the Get method to return the correct error code. Specifically, I'm getting the following: "Cannot implicitly convert type 'System.Net.Http.ResponseMessage to [DataAccess.MyModel]". Thanks again! Your videos have helped me tremendously.
Thank you for your posts. Appreciate it. I have a doubt in Get Verb with ID. The final mentioned return type is HTTPResponseMessage and thus we are able to return correct header response, but then how are we getting the employee details even when return type is changed. Please tell us the concept behind it. Thanks.
Great video. Today I properly understood how this works in terms of C#. Can you help me understand what happens when you send the same request for the existing user? Or If you send an update to the salary of the user?
You don't need to have [frombody] in posts, only if you send simple types(string, int) and not objects. Will kudvenkat make a followup course for webapi 2? It has some nice shortcuts like return BadRequest();
hello sir, thanks for all the tutorials. I want to post data into table but I have two foreign keys in the table in which I want to insert data. I tried a lot but but not able to solve yet. how to solve this issue?
ExceptionMessage=No MediaTypeFormatter is available to read an object of type 'Employee' from content with media type 'appliction/json'. sir please help me
Thanks for this video sir , I have one doubt that why did you use "Var" datatype instead of "Employee" datatype in following code line of get method:- var entity = entities.Employees.FirstOrDefault(e => e.ID == id);
How we can do the same with Created method. Or we can not do this with Created message as you said that response message is for webapi1 and OK and Created for Web API 2
I m getting error of identity (An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code) and in ID everytime execute post method its getting Zero ("0") value only
how to check web api without run (I saw you doing only build solution after edit. but in my case i cant check changes without running on google chrome. when i run the code clicking Google Chrome Debugging Button, I cant Edit Code Without Stop Debugging) please tell me how do you Doing This?) Thank You
Sorry, If it is a stupid question But want to understand that initially we didnt pass employee with ID in the POST request, Then how are we getting ID in the object which is referred in var message = Request.CreateResponse(HttpStatusCode.Created, employee);
At this line (Request.CreateResponse(HttpStatusCode.Created, objmvcWithEFAndAPI);) I'm getting this error. 'System.Web.HttpRequestBase' does not contain a definition for 'CreateResponse' and the best extension method overload 'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage, System.Net.HttpStatusCode, T)' has some invalid arguments. Please help me out........ Thanks in advance.
Hi, this is very nice tutorial however i have a little problem i try to find out but all in vain..whenever i make post request after updating post message every time response returns location "Location: localhost:51973/api/Employees11" i dont know why..with id at the end its not giving slash even i make same copy of ur code as shown in video.. Thanks in advance
I got same but realized in his fiddler he includes the ending '/' in the post, I am betting that you (me) omitted thhe trailing '/' when sending the fiddler employee post. The question I have is how do we easily fix this case do we check for last location char and append '/' if not present or is there a built in way to format it the same always
Hello Sanketh - You can find the source code in text format on my blog at the following link. You can copy and paste it instead of typing everything by hand. Hope this helps. csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html
I created the webapi with your code, but Get method with parameter doesn't execute. when i run localhost:53686/api/employees/1 here is the error that i get {"Message":"No HTTP resource was found that matches the request URI 'localhost:53686/api/employees/1'.","MessageDetail":"No action was found on the controller 'Employees' that matches the name '1'."}
This video saved me! Thank you!
Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
If you need DVDs or to download all the videos for offline viewing please visit
www.pragimtech.com/kudvenkat_dvd.aspx
Slides and Text Version of the videos can be found on my blog
csharp-video-tutorials.blogspot.com
Tips to effectively use my youtube channel.
ruclips.net/video/y780MwhY70s/видео.html
If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
ruclips.net/user/kudvenkat
If you like these videos, please click on the THUMBS UP button below the video.
May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
Good Luck
Venkat
I realize I'm quite randomly asking but does anyone know of a good site to watch new series online?
@Spencer Casen i use flixzone. You can find it by googling =)
@Duncan Archer Yea, I've been watching on FlixZone for months myself :D
@Duncan Archer thanks, I signed up and it seems to work =) I really appreciate it !
some time i don't understand why some other unnecessary videos like jokes etc make 10 20 50M views while after very hard work this kind of post does not make even 0.5M views. Always awesome job done by venkat sir.
thats the diff between entertainment and education, :)
I saw Video again and now I got it. We're passing entity to return. Thanks a lot for creating such demos which makes understanding so easy.
you are like a blessing to all the IT employees
just found your channel.
I really love it!
Sir,am getting error(HTTP/1.1 502 Fiddler - Connection Failed) while calling post method.
Could you please help me to fix the issue?
its really good about how you modify the code and evolve it to more appropriate and perfected code
Thank you for the tutorials. I've found each one to be very informative. I was hoping you could post something to help resolve an error I'm receiving when trying to update the Get method to return the correct error code. Specifically, I'm getting the following: "Cannot implicitly convert type 'System.Net.Http.ResponseMessage to [DataAccess.MyModel]". Thanks again! Your videos have helped me tremendously.
Thank you for your posts. Appreciate it.
I have a doubt in Get Verb with ID.
The final mentioned return type is HTTPResponseMessage and thus we are able to return correct header response, but then how are we getting the employee details even when return type is changed. Please tell us the concept behind it.
Thanks.
Great video. Today I properly understood how this works in terms of C#. Can you help me understand what happens when you send the same request for the existing user?
Or
If you send an update to the salary of the user?
your the best teacher
Very good video. I have learnt a lot. Thank you sir..
You don't need to have [frombody] in posts, only if you send simple types(string, int) and not objects. Will kudvenkat make a followup course for webapi 2? It has some nice shortcuts like return BadRequest();
Thank you venkat, nice course.
Thank you for all tutorials..
sir what I have to do if I want to POST data for one-to-many relationship.
hello sir, thanks for all the tutorials. I want to post data into table but I have two foreign keys in the table in which I want to insert data. I tried a lot but but not able to solve yet. how to solve this issue?
Thank you venkat sir. god bless you!
Awesome! Much better than PlualSight!
Again great explanation..Thank you so much sir...
ExceptionMessage=No MediaTypeFormatter is available to read an object of type 'Employee' from content with media type 'appliction/json'. sir please help me
you should add in the header ( Content-Type : Application/JSON )
Thanks for this video sir , I have one doubt that why did you use "Var" datatype instead of "Employee" datatype in following code line of get method:-
var entity = entities.Employees.FirstOrDefault(e => e.ID == id);
Congratulation Your tutorial are very good. How can I get the last Id if I am using stored procedure for inserting?
hi sir, is it possible to add multiple post in single controller?
How we can do the same with Created method. Or we can not do this with Created message as you said that response message is for webapi1 and OK and Created for Web API 2
You are great!!! Thanks for your beautiful tutorials!!!
What about if I have some class variables optionals? It send an error in Datetime type
hi kudvenkat , ihave Response Header like this "HTTP/1.1 400 Bad Request", are you have solution for this ?
how the value is inserted in database.We are not inserting data through UI .Can you please let me know from where we are inserting this data ?
Thank you for the wonderful series. Can you please upload some videos .NET Core 5 (.NET 5) and .NET Core Web API? Appreciate your content.
that was useful....Thank you...
I m getting error of identity (An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code) and in ID everytime execute post method its getting Zero ("0") value only
how to check web api without run (I saw you doing only build solution after edit. but in my case i cant check changes without running on google chrome. when i run the code clicking Google Chrome Debugging Button, I cant Edit Code Without Stop Debugging) please tell me how do you Doing This?)
Thank You
Thanks so much for this.
Awesome Explanation!
Sorry, If it is a stupid question But want to understand that initially we didnt pass employee with ID in the POST request, Then how are we getting ID in the object which is referred in
var message = Request.CreateResponse(HttpStatusCode.Created, employee);
sql server geneartes the ID automatically
Good job. Thanks
At this line (Request.CreateResponse(HttpStatusCode.Created, objmvcWithEFAndAPI);)
I'm getting this error.
'System.Web.HttpRequestBase' does not contain a definition for 'CreateResponse' and the best extension method overload 'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage, System.Net.HttpStatusCode, T)' has some invalid arguments.
Please help me out........ Thanks in advance.
sir please explain webapi with javascript and odata for mscrmwith some real time scenarios. please explain step by step
Thank you. Great as usual!
Can you please help with post method to post list of JSON objects at a time in ASP NET Web API?
Hi, this is very nice tutorial however i have a little problem i try to find out but all in vain..whenever i make post request after updating post message every time response returns location "Location: localhost:51973/api/Employees11" i dont know why..with id at the end its not giving slash even i make same copy of ur code as shown in video.. Thanks in advance
Yea right I too got in same format.
I got same but realized in his fiddler he includes the ending '/' in the post, I am betting that you (me) omitted thhe trailing '/' when sending the fiddler employee post. The question I have is how do we easily fix this case do we check for last location char and append '/' if not present or is there a built in way to format it the same always
Go to part 33-Generating links using route names in asp
you will understand the logic behind this.
thank you Venkat
Thanks for teaching. Where do we get the source code?
Hello Sanketh - You can find the source code in text format on my blog at the following link. You can copy and paste it instead of typing everything by hand. Hope this helps.
csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html
Good one
Hi Sir I am getting null in FromBody please give me the solution..I tried Content-Type:application/json
I am getting null values too, did you solve this ?
I am confused to get the ans. please respond to clarify the logic.
always great tutorial.but how do u upen the response in the browser. i always get a file to download.
Hope this link helps u out:)
www.codeproject.com/Tips/216175/View-JSON-in-Internet-Explorer
HTTP/1.1 502 Fiddler - Connection Failed it is giving this error in post method
Hi Sir, i want to send image file with form data, how can i please?
any one help me.
I created the webapi with your code, but Get method with parameter doesn't execute. when i run localhost:53686/api/employees/1 here is the error that i get
{"Message":"No HTTP resource was found that matches the request URI 'localhost:53686/api/employees/1'.","MessageDetail":"No action was found on the controller 'Employees' that matches the name '1'."}
How do i post a nested JSON by post method?
How do I POST to multiple Tables that are related by foreign key ?
big THX for you video!
Thank you, but, how can I implement it in an App?
I excute the POST method and the new Employee goes to the top of the Employees table with ID = 0. Why? Anybody pls
I am getting null in form body
who is watching it in nov 2024
sir Jee tusi great ho :)
This is gold
awesome
Excellent
my post method is not accepting any parameter from fiddler. showing null
tulika agrawal do you have your object set up correctly in visual studio or sql?
@@SuperSunny92 Content-Type:application/json already added but still getting null
Can you please help me
Akash Deep did you give all the parameters mentioned in the video ?
@@SaiKumar-rv2ye yes
any body can help me in post implementation is not working while using fiddler
I wish you made a corresponding HTML User interface to accommodate the code
best tutorials
Thank you Sir !!!!!!
thank you sir
Thank you !
Can any one tell me how can we send the file along with data.
Sometimes u have added code in end of the page.. We couldn't see that, because of subtitle.... 🙁☹️☹️
your article is very great full , but please sir change visual studio skin format like a blue or white. bcoz not visiable properly
Please ignore this. No offense Arvind, but I MUCH prefer this darker skin. I'm not certain what issue he is having, but it looks great for me.
Dark skin they say that is better to the our sight
Transport
Location: localhost:49936/api/employees11
why isn't there a / between employees and 11 in fiddler
reply fast plz!!!
for more headers look at http.cat!!
black skin is bad in viewing :-(
you are boss
Thank you!