示例#1
0
        public ContactUsInfo Get(ContactUsInfo model)
        {
            ContactUsInfo returnValue = new ContactUsInfo();

            try
            {
                string         spName = "uspAboutInsertUpdate";
                SqlParameter[] param  =
                {
                    SqlHelper.SqlParameter("@aboutus_id", System.Data.SqlDbType.Int, model.ContactId)
                };

                using (SqlDataReader rdr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, System.Data.CommandType.StoredProcedure, spName, param))
                {
                    while (rdr.Read())
                    {
                    }
                }
            }
            catch (Exception ex)
            {
            }

            return(returnValue);
        }
示例#2
0
        public HtmlString GetContactUsHTML(ContactUsInfo cInfo)
        {
            StringBuilder str = new StringBuilder("");

            ContactUs contactUs = new ContactUs();

            return(new HtmlString(str.ToString()));
        }
示例#3
0
        public ActionResult Index()
        {
            ContactUsInfo model = new ContactUsInfo();

            var desc = StaticContents.GetByName("ContactUs").Content;

            model.Content = HttpUtility.HtmlDecode(desc);

            return(View(model: model));
        }
        public IActionResult Save(ContactUsInfo model)
        {
            var cui = _contactUsInfoService.GetFirst();

            cui.Title       = model.Title;
            cui.Description = model.Description;
            cui.Instagram   = model.Instagram;
            cui.Facebook    = model.Facebook;
            cui.Twitter     = model.Twitter;
            cui.Youtube     = model.Youtube;

            _contactUsInfoService.Update(cui);
            return(Ok());
        }
示例#5
0
        public ContactUsInfo Get(ContactUsInfo model)
        {
            ContactUsDAL dal = new ContactUsDAL();

            return(dal.Get(model));
        }