ASP.NET Core Web API .NET 8 2024 - 4. Controllers

Sdílet
Vložit
  • čas přidán 3. 01. 2024
  • ASP.NET Core Web API .NET 8 2024 - 4. Controllers
    Github for project: github.com/teddysmithdev/FinS...
    Twitter: / teddysmithdev
    Github: github.com/teddysmithdev
    Linkedin: / teddy-smith-015ba61a3
  • Jak na to + styl

Komentáře • 27

  • @EverydayBeing-de1qu
    @EverydayBeing-de1qu Před 6 měsíci +7

    Been through so many tutorials and all of them go from 1 - 100 and it all becomes too confusing but this is the best balanced approach tutorial for me, thank you for this!

  • @mohamedabdiahmmed
    @mohamedabdiahmmed Před 2 měsíci +1

    I really enjoyed the way this teacher explains, it's extraordinary. I truly love .NET Core. 🥰🥰🥰🥰🧑‍💻🧑‍💻🧑‍💻🧑‍💻

  • @denisgautier213
    @denisgautier213 Před 3 měsíci

    Perfect Teddy !! You saved my time. I didn't find for .Net 8

  • @Khal_Rheg0
    @Khal_Rheg0 Před 2 měsíci

    Thank you!

  • @TheMahsoon
    @TheMahsoon Před měsícem +1

    nice video but i wished that you talked about different options for parameters like body, not only URL. Or if you include an example of post.

  • @stanleyjekwu6810
    @stanleyjekwu6810 Před 7 měsíci +1

    Following up...but yet to start ❤

  • @nazanindd3902
    @nazanindd3902 Před měsícem

    Perfect 🎉

  • @simplemath_01
    @simplemath_01 Před 7 měsíci +3

    Thanks Boss

  • @kvelez
    @kvelez Před 3 měsíci

    Great.

  • @elberghaswe2761
    @elberghaswe2761 Před 6 měsíci

    I started this new tutorial after finish the Pokemon Tutorial, in the poke app i added JWT w/ cookie by myself, im curious about identity, anyway, nice work! Thanks 4 all Teddy!

    • @TeddySmithDev
      @TeddySmithDev  Před 6 měsíci +1

      Sweet!!!! Thanks for watching!

    • @BlurExdins
      @BlurExdins Před 2 měsíci

      Can you give source code, if it is possible for you?

  • @youkickedmydog0
    @youkickedmydog0 Před 3 měsíci +2

    The [ApiController] attribute makes model validation errors automatically trigger an HTTP 400 response. Consequently, the following code is unnecessary in an action method:
    if (!ModelState.IsValid)
    {
    return BadRequest(ModelState);
    }
    -msft

  • @abis4508
    @abis4508 Před 3 měsíci

    I can only say waouh and mashAllah, unbelievably light, clean, which is I've B1 level, but I can get it all. Thank you Teddy!

  • @dumbeldor100
    @dumbeldor100 Před 3 dny

    Nice but isnt it bad practice to start off your request names with get/delete etc.?

  • @darlingtonazramshoniwa2535
    @darlingtonazramshoniwa2535 Před 6 měsíci

    Teddy man you are the best i am following up and i am doing as we go but i have a question from where we are now ! do why didnot we create the delete update post here in the controllers

  • @Snbd26th
    @Snbd26th Před 3 měsíci

    Hi Teddy, I'm curious why you did not use repository pattern here?

    • @TeddySmithDev
      @TeddySmithDev  Před 3 měsíci +2

      i introduce repos later. Many people on last course mentioned that repository was confusing, so I try to incrementally build up to repo.

    • @Snbd26th
      @Snbd26th Před 3 měsíci

      @@TeddySmithDev I see, I was anticipating it in the earlier parts of this tutorial. I finished your 2022 Pokemonreview app and it was splendid! Thank you very much

  • @nhimbien1041
    @nhimbien1041 Před 4 měsíci

    i just follow the tutorial , but i have No operations defined in spec error after dotnet watch run. I dont know why

    • @TeddySmithDev
      @TeddySmithDev  Před 4 měsíci

      Only thing I can think of is restart terminal

  • @muhammadasaad1314
    @muhammadasaad1314 Před 4 měsíci +1

    getting this error in swagger ui can any body help?
    Error: Internal Server Error
    Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Stocks'.
    at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

    • @TeddySmithDev
      @TeddySmithDev  Před 4 měsíci +2

      The column does not exist in SQL. Try to run migration. If you can’t get it to work that way, delete database and re run migration.

    • @lavasch6954
      @lavasch6954 Před 3 měsíci +2

      had the same problem, turns out I accidentally named the column Stock instead of Stocks, in case anybody has this issue later