Restaurant App in MVC C# Part 1

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • Don't forget to Like, Comment, Share, and Subscribe to my Channel
    Project: github.com/tek...
    🧛‍♂️ Connect with me on
    LinkedIn -www.linkedin.com/in/tek-tuition
    Telegram:t.me/Tektuition
    Skype: tektuition@gmail.com

КОМЕНТАРІ •

  • @Nicetrycutiepie
    @Nicetrycutiepie 3 роки тому +8

    seen best tutors reg MVC in their own way, But teaching the concept via PRACTICAL EXAMPLE like this developing an app is giving so much hands on exp and your standing top among all MVC tutors sir. I really like this example and looking forward to many practical examples like this down the line.

  • @johnnywalker8536
    @johnnywalker8536 2 роки тому +4

    Thank you very much sir, especially for not asking to anyone to be a member to get the source code. Very good tutorial for people like me who are new to programming in C#.

  • @joserizal4881
    @joserizal4881 4 роки тому +11

    I just wanted to thank you for Creating this Video. I have been looking for this and tried following other videos for months already. Good I was able to see yours because I like the way you explain different concepts. Keep it up! Liked and Subscribed

    • @joserizal4881
      @joserizal4881 4 роки тому

      By the way do you have any edit tutorials for forms like this?

  • @archanajadhav452
    @archanajadhav452 4 роки тому +7

    Super flow showing and very detail way

  • @omprasadmohanty6987
    @omprasadmohanty6987 3 роки тому +5

    thanks a lot for this video , and your method of teaching each and everything is very helpful .

  • @theunlock3869
    @theunlock3869 2 роки тому +2

    it is very helpful
    very good content
    I've been looking for content like this for a long time and I found it here.
    I was able to create a simple project and improve a lot.
    You are doing good. More promotions. New content.
    I'm cheering for you

  • @irfanpathan4959
    @irfanpathan4959 2 роки тому +3

    Awesome job sir ....Subscribed.. 👍

  • @Praxss
    @Praxss 2 роки тому +1

    I like how calm you are

  • @henriethenrykigozi5576
    @henriethenrykigozi5576 3 роки тому +5

    Hello sir thank you for this tutorial it happens to be my sem project at campus but I have an issue, the code for getting the final total, when I run the program with chrome, instead of adding the listed totals it brings NaN in that area of the final total, May you please help me explain why?

  • @mdsufiyan6335
    @mdsufiyan6335 4 роки тому +5

    Kilogram may calculate and given the result in unit price for ex- 1kg apple =50 then 2kg apple =100 like this sir

  • @mm00007-h
    @mm00007-h Рік тому

    One of the best tutor in India 🎉

  • @scientificsapience9901
    @scientificsapience9901 3 роки тому +5

    This is a great tutorial. You should keep it up.

  • @buyisilejikephi7651
    @buyisilejikephi7651 4 роки тому +6

    Wowwww thank you so much sir this has been really helpful

  • @TheManiaza
    @TheManiaza 3 роки тому +5

    Good video tutorial MVC
    Thank you so much

  • @zubairmirza4191
    @zubairmirza4191 4 місяці тому +1

    very very very nice sir ...................................awesommmmmmmmmmmmmm

  • @prasunbanik3613
    @prasunbanik3613 3 роки тому +2

    so far the best video for MVC and a hell of lot about jquery. Thank you

    • @TekTuition
      @TekTuition  3 роки тому +2

      Yes if you will not use the every request will go to server...and page ref also happen

  • @mohammadsubhan-v5p
    @mohammadsubhan-v5p 3 місяці тому +1

    can this b done in visual studio sir??

  • @hmDaudProgrammer
    @hmDaudProgrammer 2 роки тому +5

    This is wonderful tutorial. Can we have the complete source code of above ?

  • @AsifKhan-et1ip
    @AsifKhan-et1ip 3 роки тому +1

    Thanks. It was Very useful as I am doing first .Net project.
    But My "Add To List " button is not working. if I click on it, don't show the listed Items. i have checked id selector & function many times but couldn't found what us wrong. Can you help me please please?

  • @arttasticreelalert1806
    @arttasticreelalert1806 4 роки тому +6

    Hello sir, Thanks for this sharing these knowledge to us, it really will help to understand the concepts, so sir i have a query while doing code the remove action wont work can you sent us the same code in comment for first video only this will help us to resolve the issue please support as same.
    Thanks in advance

  • @bala3897
    @bala3897 3 роки тому +3

    Wow... very helpful.. subscribed

  • @mdsufiyan6335
    @mdsufiyan6335 4 роки тому +2

    Sir, even if the discount option in percentage may be discounted, then it will given the result of unit price of Calcute

  • @l.m6038
    @l.m6038 3 роки тому +4

    Hello. I really liked this tutorial. can you upload the codes so I can download them?

  • @nitinpatil6441
    @nitinpatil6441 3 роки тому +4

    This very good video..Could you please share the code of this program. That will be more helpful..Thanks in advance..

  • @face1517
    @face1517 4 роки тому +4

    very helpful deserve more subsribers please do more videos sir keepsafe :)

  • @sanjayjha9367
    @sanjayjha9367 5 років тому +5

    Sir jee very helpful video Thank you sir is project Ko PURA baba ke bataye ga

    • @tairmukhambetov
      @tairmukhambetov 4 роки тому

      I've problem Cannot implicitly convert type 'decimal?' to 'decimal'./ I did step by step/

  • @manmohanmadhav8329
    @manmohanmadhav8329 3 роки тому +4

    Very nice tutorial sir.Easy to understand for beginners. Can you please provide the source code of this project Sir?

  • @anphamthanh2159
    @anphamthanh2159 3 роки тому +2

    Thank you so much, that's very clear and specific

  • @GatewaytoRichnessTamil
    @GatewaytoRichnessTamil 8 місяців тому

    Is this entity model or without entity model sir?

  • @shajisn5094
    @shajisn5094 4 роки тому +1

    I was trying this in MVC 5, but Viewbag, @HTML all showing error. I removed temp files, installed nuget mvc5, updated appsettings and tried every means. Deleted and created the index and very moment I add @model Tuple < ...> in the index.cshtml, Viewbag statement become red and it says name does not exist in the current context. I tried downgrading the .NET framework also and no way.

  • @parvathyk3888
    @parvathyk3888 4 роки тому +4

    Thank you very much sir. Really superb

  • @francisbanda1614
    @francisbanda1614 3 роки тому +5

    good day sir, this is so interesting is there possibility to share the source code
    thanking in advance
    thanks

  • @codedreamers671
    @codedreamers671 4 роки тому +5

    What an awesome tutorial Thanks!!

  • @TripuranaLohit
    @TripuranaLohit 3 роки тому +1

    I like your videos and I m a fan of you. I practising according to your video, so, I could not able to bind the return value to the Unit Price text box , please help.

  • @emmanuelfiadufe7464
    @emmanuelfiadufe7464 Рік тому

    Great Tutorial Sir, but can you add another tutorial to show how to print sales receipt for customers. thanks

  • @m.minhag
    @m.minhag 4 роки тому +1

    Hi Teck.. thanks for all this free tutorial
    My question is when you delete how to recalculate the sub total and the value of the deleted selected to be taken from the FinalTotal textbox thank you again...

    • @tairmukhambetov
      @tairmukhambetov 4 роки тому

      I've problem Cannot implicitly convert type 'decimal?' to 'decimal'./ I did step by step/

    • @Voidsway
      @Voidsway 4 роки тому

      It's been a few months but maybe it will help someone else if they're going through this. You might even come back to this! I've made some additions to my code but the first thing you should do it make your variable/s.
      var finalTotal = parseFloat($("#txtFinalTotal").val());
      and you need a variable to hold the total that is listed in your list.
      Mr. Tek gave us a way to reach this variable by its id that is being passed through the btn click. Using this we could get the closest "tr" and find "td" that is equal to an index in your table.
      var total = parseFloat($(itemId).closest("tr").find("td:eq(6)").text());
      My index 6 equals to my total in my table. With these 2 variables you could perform subtraction
      finalTotal = finalTotal - total;
      Then, add your new total to your finalTotal tag.
      $("#txtFinalTotal").val(finalTotal.toFixed(2));
      Finally remove the tag.
      $(itemId).closest('tr').remove();
      Here's my Remove Function:
      function RemoveItemOnClick(itemId) {
      var finalTax = parseFloat($("#txtFinalTax").val());
      var finalTotal = parseFloat($("#txtFinalTotal").val());
      var tax = parseFloat($(itemId).closest("tr").find("td:eq(5)").text()); /* equal to index td in tr = tax */
      var total = parseFloat($(itemId).closest("tr").find("td:eq(6)").text()); /* equal to index td in tr = total */
      finalTax = finalTax - tax;
      finalTotal = finalTotal - total;
      $("#txtFinalTax").val(finalTax.toFixed(2));
      $("#txtFinalTotal").val(finalTotal.toFixed(2));
      $(itemId).closest('tr').remove(); /* Remove closes tr tag to itemId */
      }
      Haven't gotten to the next video yet >.> so maybe he has addressed this already. Anyways, hope it helps!

    • @sarojoc
      @sarojoc 4 роки тому

      @@Voidsway
      function FinalItemTotal() {
      $("#txtFinalTotal").val("0.00");
      var FinalTotal = 0.00;
      $("#tblRestaurantItemList").find("td:gt(0)").each(function () {
      var Total = parseFloat($(this).find("td:eq(5)").text());
      FinalTotal += Total;
      alert(FinalTotal);
      });
      $("txtFinalTotal").val(parseFloat(FinalTotal).toFixed(2));
      }
      canu help me in this function. Thaankyou in advance

    • @Voidsway
      @Voidsway 4 роки тому +1

      @@sarojoc looks like you need to loop through your table rows.
      Change td:gt(0) to find("tr:gt(0)").each
      your txtFinalTotal is being accessed wrong at the end. You forgot the #.
      $("#txtFinalTotal").val
      Should work after this.

    • @sarojoc
      @sarojoc 4 роки тому

      @@Voidsway Thank You .

  • @BabuBangi-rc9rz
    @BabuBangi-rc9rz 5 місяців тому

    Getting error-Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments.
    Customer :
    @Html.DropDownList(name: "Customer", new SelectList(Model.Item1, dataValueField: "Value", dataTextField: "Text"),
    htmlAttributes: new { @class = "form-control" })

  • @sergiofipp
    @sergiofipp 3 роки тому +1

    Hello sir, Thanks for sharing this work.

  • @sumeetbhati526
    @sumeetbhati526 3 роки тому +2

    Hi can you make video on crud on many to many model

  • @Harbitahani
    @Harbitahani 3 роки тому

    where did Private ResturantDBEntities come from ? in thePayment TypeRepository

  • @nguyentuananh4078
    @nguyentuananh4078 3 роки тому +3

    Can you share GitHub code?

  • @itissahithi
    @itissahithi 2 роки тому

    In connection properties, it showed me the page with Data source and Database file name which I could not find in the system?

  • @zalmanapdi9290
    @zalmanapdi9290 Рік тому

    Sir this project can be online ordering or not

  • @taquiwali7802
    @taquiwali7802 4 роки тому

    I took the displayed concept but it is not loading. In browser logs sometimes it is showing as parsefloat error.

  • @easytechnique7324
    @easytechnique7324 Рік тому

    thank you so much for uploading this tutorial sir :)

  • @2005Azm
    @2005Azm 3 роки тому +4

    you just got my subscription

  • @bilalmrad5444
    @bilalmrad5444 4 роки тому

    Great work, keep going..
    In case someone faced the following error :
    "LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression."
    just replace :
    //var objSelectListItems = new List();
    //objSelectListItems = (from obj in objRestaurantDBEntities.Customers
    // select new SelectListItem()
    // {
    // Text = obj.CustomerName,
    // Value = obj.CustomerId.ToString(),
    // Selected = true
    // }).ToList();
    by the following :
    var objSelectListItems = objRestaurantDBEntities.Customers.ToList().Select(c => new SelectListItem
    {
    Value = c.CustomerId.ToString(),
    Text = c.CustomerName
    });

    • @TekTuition
      @TekTuition  4 роки тому

      May be u are missing System.Linq namespace

    • @bilalmrad5444
      @bilalmrad5444 4 роки тому

      @@TekTuition Hi Tek, No I'm already using the System.Linq namespace

  • @codingislife6387
    @codingislife6387 2 роки тому +1

    Nice Sir

  • @broly2582
    @broly2582 9 місяців тому

    Can u help me with this error thanks in advance : System.Data.Entity.Core.EntityException: 'The underlying provider failed on Open.' SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

  • @wenalex
    @wenalex 3 роки тому

    I am getting an error on this code.
    var objSelectListItems = new List();
    objSelectListItems = (from obj in objRestauranDBEntities.Customers
    select new SelectListItem()
    {
    Text = obj.CustomerName,
    Value = obj.CustomerID.ToString(),
    Selected = true
    }).ToList();
    return objSelectListItems;
    it says "LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression."

  • @jahanzaibansari6400
    @jahanzaibansari6400 4 роки тому +4

    Awesome bro thanks alot

  • @tairmukhambetov
    @tairmukhambetov 4 роки тому +4

    best tutorial about MVC!!!

  • @techrelated2417
    @techrelated2417 4 роки тому +5

    Very good Series!!

  • @siddharthanayak1988
    @siddharthanayak1988 3 роки тому +1

    what you use between entity framework and ado.net

    • @TekTuition
      @TekTuition  3 роки тому +1

      Entity framework code first approach

  • @krishnagoriparthi4570
    @krishnagoriparthi4570 4 роки тому

    Cannot implicitly convert type 'decimal?' to 'decimal'. An explicit conversion exists (are you missing a cast?)

    • @shruthin3671
      @shruthin3671 3 роки тому

      have you got issue solved

    • @asutosdwibedi6606
      @asutosdwibedi6606 3 роки тому

      @@shruthin3671 decimal? unitPrice = objrestruant.Items.Single(model => model.ItemId == itemId).ItemPrice; Try this

  • @nawinparisarla6488
    @nawinparisarla6488 3 роки тому +1

    hello sir, this is a good tutorial for mvc . great job..!!

  • @ravichandra786
    @ravichandra786 3 роки тому +1

    Awesome video for learners

  • @shwethashivkumar7317
    @shwethashivkumar7317 4 роки тому +2

    CS1738: Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments. getting this error while loading page... can anyone help with me

    • @TekTuition
      @TekTuition  4 роки тому

      Send us screenshots to mail..

    • @arfeenkhan2831
      @arfeenkhan2831 4 роки тому

      @Shwetha Go to Manage Nuget packages and update. it will resolve your error!

    • @tayyabmanzoor4023
      @tayyabmanzoor4023 4 роки тому +1

      @@arfeenkhan2831 I have updated the packages but didn't resolve the error. Please Help

    • @nawinparisarla6488
      @nawinparisarla6488 3 роки тому

      did u resolve that error..? . i am getting the same error.

    • @nawinparisarla6488
      @nawinparisarla6488 3 роки тому +1

      finally got it @shwetha . Go to Manage Nuget packages and update. i updated 4 packages like dotnet compiler , jquery , bootstrap it's working now.

  • @muhammadherry185
    @muhammadherry185 5 років тому +1

    could u tell me why my button "Remove" un work in my app ?, I had followed your step by step clearly but still does not work. just it my problem and I like your video

    • @TekTuition
      @TekTuition  5 років тому

      If it's possible to share your code to me so can check. Or tell me what are you doing?

    • @TekTuition
      @TekTuition  5 років тому

      or check in console maybe you are getting some error. or share the error

    • @tairmukhambetov
      @tairmukhambetov 4 роки тому

      I've problem Cannot implicitly convert type 'decimal?' to 'decimal'./ I did step by step/

    • @apeksharahulgade5780
      @apeksharahulgade5780 3 роки тому

      @@TekTuition sir please help me for adding the total in restaurant

    • @TekTuition
      @TekTuition  3 роки тому

      @@apeksharahulgade5780plz share the code

  • @ibrarahmad9564
    @ibrarahmad9564 3 роки тому

    Sir in payment type repository the name RestaurantDBEntities show a error message and say could not be occur

  • @REVEURWORLD
    @REVEURWORLD 3 роки тому

    sir i am getting an error after time 22.22 that not supported exception was handled by the user.. now what i do?

    • @TekTuition
      @TekTuition  3 роки тому

      What is the error

    • @REVEURWORLD
      @REVEURWORLD 3 роки тому

      @@TekTuition NotSupportedException was unhandled by user code

  • @akashnarwade3597
    @akashnarwade3597 2 роки тому +1

    Hii sir I have some isse please let me where I am wrong!

  • @josegarcia-th3pj
    @josegarcia-th3pj 2 роки тому

    IF YOU HAVE TABLES HOW DO YOU ASSIGN THE TABLES TO A CUSTOMER

  • @Islamic_Videos_786-u4n
    @Islamic_Videos_786-u4n 4 роки тому +3

    very good video suscribed

  • @ataullahkhan2053
    @ataullahkhan2053 3 роки тому +2

    good job sir need souce code sir

  • @venkatasailucky2965
    @venkatasailucky2965 3 роки тому

    I am not able to select the unit price in that

  • @nangdalet5994
    @nangdalet5994 2 роки тому

    sir, I can't clone your project. When I clone it's null.

  • @amrmostafa6574
    @amrmostafa6574 3 роки тому

    CS1729 Select list does not contain a constructor that takes 3 arguments !!

  • @karthicksurya2988
    @karthicksurya2988 4 роки тому

    Sir....you have a great job but while doing the listing of item at the bottom is not working .......but the code was same may I know reason

    • @karthicksurya2988
      @karthicksurya2988 4 роки тому

      Can anyone tell me why?

    • @TekTuition
      @TekTuition  4 роки тому

      only can check once will look your code. If possible please share the code.

  • @musawariproduction3506
    @musawariproduction3506 3 роки тому

    sir i got "Object reference not set to an instance of an object." error message when execute the index.cshtml on " @Html.DropDownList("tbl_customer", new SelectList(Model.Item1, "Value", "Text"), new { @class = "from-control" })" please help me

  • @saranyaravichandran4101
    @saranyaravichandran4101 4 роки тому +1

    Hi sir i have a problem to store the data in AddToList

    • @TekTuition
      @TekTuition  4 роки тому

      share you code & database. then only can check

  • @apeksharahulgade5780
    @apeksharahulgade5780 3 роки тому

    Sir at the time of adding the total in to restaurant it's not working.
    M getting 0.00 value

  • @priyachaurasiya9056
    @priyachaurasiya9056 7 місяців тому

    But in view there is no index file why

  • @sagarkopnar6193
    @sagarkopnar6193 3 роки тому

    Sir please try to this web app create into .net core mvc using db first approach

  • @nguyentienha1595
    @nguyentienha1595 3 роки тому

    i cannot use any function in js, i just download only bootstrap, how can i get jquery to use Javascript :(

  • @mohammadzafar2463
    @mohammadzafar2463 3 роки тому

    very very clear and excellent one

  • @hatemgamil2738
    @hatemgamil2738 4 роки тому +2

    can you please share the source code?

  • @tairmukhambetov
    @tairmukhambetov 4 роки тому

    I've problem Cannot implicitly convert type 'decimal?' to 'decimal'./ I did step by step/

    • @tairmukhambetov
      @tairmukhambetov 4 роки тому

      in 41.26 seconds

    • @mano5529
      @mano5529 3 роки тому

      Your problem has solved?

    • @asutosdwibedi6606
      @asutosdwibedi6606 3 роки тому

      @@mano5529 decimal? unitPrice = objrestruant.Items.Single(model => model.ItemId == itemId).ItemPrice; try this

  • @duregshchaudhary9763
    @duregshchaudhary9763 3 роки тому

    would you like make same project source code with asp.net mvc and extjs 4

  • @manivad01
    @manivad01 3 роки тому

    Hi looks good. But where can i see source code ?

  • @chittaranjanswain7919
    @chittaranjanswain7919 5 років тому +3

    Nice video...

  • @yasinshirwan407
    @yasinshirwan407 4 роки тому

    Thanks sir for these knowledge

  • @francisbanda1614
    @francisbanda1614 3 роки тому

    good day sir, I have really enjoyed your demo video, but the whole project I came across with only one issue which is the following may be you can help and tell where I went wrong. thanks.
    Compiler Error Message: CS1738: Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments.
    Source Error:
    Line 206:
    Line 207: Customer :
    Line 208: @Html.DropDownList(name: "Customer", new SelectList(Model.Item1, dataValueField: "Value", dataTextField: "Text"), htmlAttributes: new { @class = "form-control" })
    Line 209:
    Line 210:
    Source File: C:\Mvc Work\WebAppRestaurantDemo\WebAppRestaurantDemo\Views\Home\Index.cshtml Line: 208

    • @TekTuition
      @TekTuition  3 роки тому

      If it's possible please share the code then only can help. tektuition2020@gmail.com

  • @mayurgaikwad219
    @mayurgaikwad219 3 роки тому +2

    Hii sir plz source code of this project

  • @nitishmishra3038
    @nitishmishra3038 4 роки тому +1

    can you plz provide us the code in files plz

  • @KeffelewAssefa
    @KeffelewAssefa 4 роки тому +3

    Thank you.

  • @MITFE-gx8dk
    @MITFE-gx8dk 3 роки тому +1

    Sir how to connect you?

  • @madhubillu519
    @madhubillu519 4 роки тому

    Very good sir..pls help to get code..

  • @louburias9650
    @louburias9650 4 роки тому +4

    You are a legend!

    • @tairmukhambetov
      @tairmukhambetov 4 роки тому

      I've problem Cannot implicitly convert type 'decimal?' to 'decimal'./ I did step by step/

  • @lavanyarao5650
    @lavanyarao5650 3 роки тому

    Can't add ado. file😒

  • @krishnagoriparthi4570
    @krishnagoriparthi4570 4 роки тому

    hi I got this error any body can u help me

  • @jayakumar2927
    @jayakumar2927 3 роки тому +1

    Share source code

  • @jaygajera1235
    @jaygajera1235 3 роки тому

    Database Create to Ms sql server

  • @sunnymariapriya
    @sunnymariapriya 3 роки тому

    its desktop application

  • @BeautifulWorld-with-Abuzain
    @BeautifulWorld-with-Abuzain 2 роки тому

    Hi Sir, Binging of your video you asked for the favor to like and subscribe your chanel, We will help you 100% but below many people asked you for the source code, but you are not replying to them so please be fare if you want us to help you then please help us too, sorry for any inconvenience caused, many Thanks

    • @TekTuition
      @TekTuition  Рік тому

      i dnt have source code right now. long time ago have created. need to check mail