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); }
public HtmlString GetContactUsHTML(ContactUsInfo cInfo) { StringBuilder str = new StringBuilder(""); ContactUs contactUs = new ContactUs(); return(new HtmlString(str.ToString())); }
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()); }
public ContactUsInfo Get(ContactUsInfo model) { ContactUsDAL dal = new ContactUsDAL(); return(dal.Get(model)); }