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 ru-vid.complaylists?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. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-y780MwhY70s.html If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. ru-vid.com 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.
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();
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.
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);
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);
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?
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
ExceptionMessage=No MediaTypeFormatter is available to read an object of type 'Employee' from content with media type 'appliction/json'. sir please help me
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
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.
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
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'."}
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