Pages

Wednesday, 16 March 2022

Parameterized Repository ASP.Net C#

 public bool SavePackage(PackageModel data, ref string ErrMsg)
        {

            String result = "";
            string sql = "insert into Package (PackageName,Price) values(@PackageName,@Price)";
            try
            {

Layout In CI

Step 1 :

Make a folder named shared in app/Views

Step 2 : 

Make 3 files named menu.php,footer.php,layout.php

menu.php : will hold menu of website

layout.php : will hold master layout page for your website

footer.php : will hold footer code