Restaurant App in MVC C# Part 1

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 25. 08. 2019
  • Don't forget to Like, Comment, Share, and Subscribe to my Channel
    Project: github.com/tektuition/WebAppR...
    đŸ§›â€â™‚ïž Connect with me on
    LinkedIn -www.linkedin.com/in/tek-tuition
    Telegram:t.me/Tektuition
    Skype: tektuition@gmail.com
  • Věda a technologie

Komentáƙe • 170

  • @Nicetrycutiepie
    @Nicetrycutiepie Pƙed 3 lety +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 Pƙed rokem +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 Pƙed 4 lety +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 Pƙed 4 lety

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

  • @archanajadhav452
    @archanajadhav452 Pƙed 3 lety +7

    Super flow showing and very detail way

  • @zubairmirza4191
    @zubairmirza4191 Pƙed měsĂ­cem +1

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

  • @omprasadmohanty6987
    @omprasadmohanty6987 Pƙed 2 lety +5

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

  • @scientificsapience9901
    @scientificsapience9901 Pƙed 2 lety +5

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

  • @irfanpathan4959
    @irfanpathan4959 Pƙed 2 lety +3

    Awesome job sir ....Subscribed.. 👍

  • @TheManiaza
    @TheManiaza Pƙed 3 lety +5

    Good video tutorial MVC
    Thank you so much

  • @buyisilejikephi7651
    @buyisilejikephi7651 Pƙed 3 lety +6

    Wowwww thank you so much sir this has been really helpful

  • @theunlock3869
    @theunlock3869 Pƙed 2 lety +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

  • @techrelated2417
    @techrelated2417 Pƙed 4 lety +5

    Very good Series!!

  • @anphamthanh2159
    @anphamthanh2159 Pƙed 2 lety +2

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

  • @bala3897
    @bala3897 Pƙed 3 lety +3

    Wow... very helpful.. subscribed

  • @codedreamers671
    @codedreamers671 Pƙed 3 lety +5

    What an awesome tutorial Thanks!!

  • @prasunbanik3613
    @prasunbanik3613 Pƙed 3 lety +2

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

    • @TekTuition
      @TekTuition  Pƙed 3 lety +2

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

  • @tairmukhambetov
    @tairmukhambetov Pƙed 4 lety +4

    best tutorial about MVC!!!

  • @parvathyk3888
    @parvathyk3888 Pƙed 3 lety +4

    Thank you very much sir. Really superb

  • @Praxss
    @Praxss Pƙed 2 lety +1

    I like how calm you are

  • @madanmuraree2583
    @madanmuraree2583 Pƙed rokem

    One of the best tutor in India 🎉

  • @sergiofipp
    @sergiofipp Pƙed 2 lety +1

    Hello sir, Thanks for sharing this work.

  • @mohammadzafar2463
    @mohammadzafar2463 Pƙed 3 lety

    very very clear and excellent one

  • @jahanzaibansari6400
    @jahanzaibansari6400 Pƙed 4 lety +4

    Awesome bro thanks alot

  • @ravichandra786
    @ravichandra786 Pƙed 3 lety +1

    Awesome video for learners

  • @yasinshirwan407
    @yasinshirwan407 Pƙed 4 lety

    Thanks sir for these knowledge

  • @face1517
    @face1517 Pƙed 3 lety +4

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

  • @chittaranjanswain7919
    @chittaranjanswain7919 Pƙed 4 lety +3

    Nice video...

  • @henriethenrykigozi5576
    @henriethenrykigozi5576 Pƙed 3 lety +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?

  • @2005Azm
    @2005Azm Pƙed 3 lety +4

    you just got my subscription

  • @arttasticreelalert1806
    @arttasticreelalert1806 Pƙed 4 lety +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

  • @mdsufiyan6335
    @mdsufiyan6335 Pƙed 3 lety +5

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

  • @mdsufiyan6335
    @mdsufiyan6335 Pƙed 3 lety +2

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

  • @KeffelewAssefa
    @KeffelewAssefa Pƙed 3 lety +3

    Thank you.

  • @codingislife6387
    @codingislife6387 Pƙed 2 lety +1

    Nice Sir

  • @easytechnique7324
    @easytechnique7324 Pƙed 9 měsĂ­ci

    thank you so much for uploading this tutorial sir :)

  • @manmohanmadhav8329
    @manmohanmadhav8329 Pƙed 3 lety +4

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

  • @hmDaudProgrammer
    @hmDaudProgrammer Pƙed 2 lety +5

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

  • @mrjawad867
    @mrjawad867 Pƙed 4 lety +3

    very good video suscribed

  • @l.m6038
    @l.m6038 Pƙed 3 lety +4

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

  • @nitinpatil6441
    @nitinpatil6441 Pƙed 3 lety +4

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

  • @AsifKhan-et1ip
    @AsifKhan-et1ip Pƙed 3 lety +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?

  • @sanjayjha9367
    @sanjayjha9367 Pƙed 4 lety +5

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

    • @tairmukhambetov
      @tairmukhambetov Pƙed 4 lety

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

  • @shajisn5094
    @shajisn5094 Pƙed 4 lety +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.

  • @louburias9650
    @louburias9650 Pƙed 4 lety +4

    You are a legend!

    • @tairmukhambetov
      @tairmukhambetov Pƙed 4 lety

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

  • @nawinparisarla6488
    @nawinparisarla6488 Pƙed 3 lety +1

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

  • @Harbitahani
    @Harbitahani Pƙed 3 lety

    where did Private ResturantDBEntities come from ? in thePayment TypeRepository

  • @taquiwali7802
    @taquiwali7802 Pƙed 3 lety

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

  • @francisbanda1614
    @francisbanda1614 Pƙed 3 lety +5

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

  • @emmanuelfiadufe7464
    @emmanuelfiadufe7464 Pƙed rokem

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

  • @sumeetbhati526
    @sumeetbhati526 Pƙed 3 lety +2

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

  • @ibrarahmad9564
    @ibrarahmad9564 Pƙed 3 lety

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

  • @bilalmrad5444
    @bilalmrad5444 Pƙed 4 lety

    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  Pƙed 4 lety

      May be u are missing System.Linq namespace

    • @bilalmrad5444
      @bilalmrad5444 Pƙed 4 lety

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

  • @itissahithi
    @itissahithi Pƙed 2 lety

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

  • @wenalex
    @wenalex Pƙed 3 lety

    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."

  • @venkatasailucky2965
    @venkatasailucky2965 Pƙed 3 lety

    I am not able to select the unit price in that

  • @TripuranaLohit
    @TripuranaLohit Pƙed 3 lety +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.

  • @m.minhag
    @m.minhag Pƙed 4 lety +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 Pƙed 4 lety

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

    • @Voidsway
      @Voidsway Pƙed 3 lety

      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 Pƙed 3 lety

      @@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 Pƙed 3 lety +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 Pƙed 3 lety

      @@Voidsway Thank You .

  • @mohammadsubhan-v5p
    @mohammadsubhan-v5p Pƙed 26 dny +1

    can this b done in visual studio sir??

  • @ataullahkhan2053
    @ataullahkhan2053 Pƙed 2 lety +2

    good job sir need souce code sir

  • @BabuBangi-rc9rz
    @BabuBangi-rc9rz Pƙed 2 měsĂ­ci

    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" })

  • @josegarcia-th3pj
    @josegarcia-th3pj Pƙed 2 lety

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

  • @sagarkopnar6193
    @sagarkopnar6193 Pƙed 3 lety

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

  • @duregshchaudhary9763
    @duregshchaudhary9763 Pƙed 3 lety

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

  • @nitishmishra3038
    @nitishmishra3038 Pƙed 4 lety +1

    can you plz provide us the code in files plz

  • @nguyentuananh4078
    @nguyentuananh4078 Pƙed 3 lety +3

    Can you share GitHub code?

  • @hatemgamil2738
    @hatemgamil2738 Pƙed 3 lety +2

    can you please share the source code?

  • @madhubillu519
    @madhubillu519 Pƙed 4 lety

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

  • @GatewaytoRichnessTamil
    @GatewaytoRichnessTamil Pƙed 6 měsĂ­ci

    Is this entity model or without entity model sir?

  • @amrmostafa6574
    @amrmostafa6574 Pƙed 3 lety

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

  • @manivad01
    @manivad01 Pƙed 3 lety

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

  • @nangdalet5994
    @nangdalet5994 Pƙed 2 lety

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

  • @krishnagoriparthi4570
    @krishnagoriparthi4570 Pƙed 3 lety

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

    • @shruthin3671
      @shruthin3671 Pƙed 3 lety

      have you got issue solved

    • @asutosdwibedi6606
      @asutosdwibedi6606 Pƙed 3 lety

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

  • @akashnarwade3597
    @akashnarwade3597 Pƙed 2 lety +1

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

  • @siddharthanayak1988
    @siddharthanayak1988 Pƙed 3 lety +1

    what you use between entity framework and ado.net

    • @TekTuition
      @TekTuition  Pƙed 3 lety +1

      Entity framework code first approach

  • @saranyaravichandran4101
    @saranyaravichandran4101 Pƙed 3 lety +1

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

    • @TekTuition
      @TekTuition  Pƙed 3 lety

      share you code & database. then only can check

  • @krishnagoriparthi4570
    @krishnagoriparthi4570 Pƙed 3 lety

    hi I got this error any body can u help me

  • @broly2582
    @broly2582 Pƙed 6 měsĂ­ci

    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)

  • @priyachaurasiya9056
    @priyachaurasiya9056 Pƙed 4 měsĂ­ci

    But in view there is no index file why

  • @muhammadherry185
    @muhammadherry185 Pƙed 4 lety +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  Pƙed 4 lety

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

    • @TekTuition
      @TekTuition  Pƙed 4 lety

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

    • @tairmukhambetov
      @tairmukhambetov Pƙed 4 lety

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

    • @apeksharahulgade5780
      @apeksharahulgade5780 Pƙed 3 lety

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

    • @TekTuition
      @TekTuition  Pƙed 3 lety

      @@apeksharahulgade5780plz share the code

  • @zalmanapdi9290
    @zalmanapdi9290 Pƙed rokem

    Sir this project can be online ordering or not

  • @REVEURWORLD
    @REVEURWORLD Pƙed 3 lety

    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  Pƙed 3 lety

      What is the error

    • @REVEURWORLD
      @REVEURWORLD Pƙed 3 lety

      @@TekTuition NotSupportedException was unhandled by user code

  • @shwethashivkumar7317
    @shwethashivkumar7317 Pƙed 4 lety +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  Pƙed 4 lety

      Send us screenshots to mail..

    • @arfeenkhan2831
      @arfeenkhan2831 Pƙed 3 lety

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

    • @tayyabmanzoor4023
      @tayyabmanzoor4023 Pƙed 3 lety +1

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

    • @nawinparisarla6488
      @nawinparisarla6488 Pƙed 3 lety

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

    • @nawinparisarla6488
      @nawinparisarla6488 Pƙed 3 lety +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.

  • @apeksharahulgade5780
    @apeksharahulgade5780 Pƙed 3 lety

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

  • @francisbanda1614
    @francisbanda1614 Pƙed 3 lety

    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  Pƙed 3 lety

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

  • @mayurgaikwad219
    @mayurgaikwad219 Pƙed 2 lety +2

    Hii sir plz source code of this project

  • @nguyentienha1595
    @nguyentienha1595 Pƙed 3 lety

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

  • @karthicksurya2988
    @karthicksurya2988 Pƙed 3 lety

    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 Pƙed 3 lety

      Can anyone tell me why?

    • @TekTuition
      @TekTuition  Pƙed 3 lety

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

  • @tairmukhambetov
    @tairmukhambetov Pƙed 4 lety

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

    • @tairmukhambetov
      @tairmukhambetov Pƙed 4 lety

      in 41.26 seconds

    • @mano5529
      @mano5529 Pƙed 3 lety

      Your problem has solved?

    • @asutosdwibedi6606
      @asutosdwibedi6606 Pƙed 3 lety

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

  • @musawariproduction3506
    @musawariproduction3506 Pƙed 3 lety

    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

  • @lavanyarao5650
    @lavanyarao5650 Pƙed 3 lety

    Can't add ado. file😒

  • @jaygajera1235
    @jaygajera1235 Pƙed 3 lety

    Database Create to Ms sql server

  • @jayakumar2927
    @jayakumar2927 Pƙed 3 lety +1

    Share source code

  • @MITFE-gx8dk
    @MITFE-gx8dk Pƙed 3 lety +1

    Sir how to connect you?

  • @sunnymariapriya
    @sunnymariapriya Pƙed 3 lety

    its desktop application

  • @IT-TECH-UK-LIMITED
    @IT-TECH-UK-LIMITED Pƙed 2 lety

    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  Pƙed rokem

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