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

Поделиться
HTML-код
  • Опубликовано: 3 янв 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
  • ХоббиХобби

Комментарии • 26

  • @EverydayBeing-de1qu
    @EverydayBeing-de1qu 5 месяцев назад +5

    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 Месяц назад +1

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

  • @denisgautier213
    @denisgautier213 2 месяца назад

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

  • @Khal_Rheg0
    @Khal_Rheg0 2 месяца назад

    Thank you!

  • @stanleyjekwu6810
    @stanleyjekwu6810 6 месяцев назад +1

    Following up...but yet to start ❤

  • @TheMahsoon
    @TheMahsoon Месяц назад +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.

  • @nazanindd3902
    @nazanindd3902 9 дней назад

    Perfect 🎉

  • @simplemath_01
    @simplemath_01 6 месяцев назад +3

    Thanks Boss

  • @youkickedmydog0
    @youkickedmydog0 2 месяца назад +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

  • @kvelez
    @kvelez 2 месяца назад

    Great.

  • @elberghaswe2761
    @elberghaswe2761 5 месяцев назад

    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  5 месяцев назад +1

      Sweet!!!! Thanks for watching!

    • @BlurExdins
      @BlurExdins 2 месяца назад

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

  • @abis4508
    @abis4508 3 месяца назад

    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!

  • @Snbd26th
    @Snbd26th 3 месяца назад

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

    • @TeddySmithDev
      @TeddySmithDev  3 месяца назад +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 3 месяца назад

      @@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

  • @darlingtonazramshoniwa2535
    @darlingtonazramshoniwa2535 5 месяцев назад

    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

  • @nhimbien1041
    @nhimbien1041 3 месяца назад

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

    • @TeddySmithDev
      @TeddySmithDev  3 месяца назад

      Only thing I can think of is restart terminal

  • @muhammadasaad1314
    @muhammadasaad1314 4 месяца назад +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  4 месяца назад +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 2 месяца назад +2

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