コード例 #1
0
ファイル: adminController.cs プロジェクト: suraj033/crystal
        public ActionResult aboutus()
        {
            p.onTable = "Fetch_Aboutus_Data";
            ds        = dl.FetchMaster(p);
            var info = new crystalthoughts.Models.aboutus();

            try
            {
                if (ds?.Tables[0].Rows.Count > 0)
                {
                    DataRow i = ds.Tables[0].Rows[0];
                    info.aboutid     = i["aboutid"].ToString();
                    info.title       = i["title"].ToString();
                    info.image       = i["image"].ToString();
                    info.Description = i["Description"].ToString();
                }
            }
            catch (Exception ex)
            { }
            return(View(info));
        }
コード例 #2
0
 public int Insertaboutus(aboutus abs)
 {
     string[] pname  = { "@aboutid", "@title", "@image", "@Description" };
     string[] pvalue = { abs.aboutid, abs.title, abs.image, abs.Description };
     return(Int_Process("Insertaboutus", pname, pvalue));
 }