public ActionResult Edit(int type, int id) { var c = _appSettingService.FindByIdAsync(id).Result; var m = new AppSettingViewModel { TypeId = c.TypeId, AboutUs = c.AboutUs, CafebazarLink = c.CafebazarLink, ChangeLog = c.ChangeLog, Instagram = c.Instagram, Site = c.Site, Soundcloud = c.Soundcloud, Telegram = c.Telegram }; return(View(m)); }
public ActionResult GetSettingAndAbout() { var p = _appSettingService.FindByIdAsync(1).Result; var setting = new { p.Id, p.AboutUs, p.CafebazarLink, p.ChangeLog, p.Instagram, p.Site, p.Soundcloud, p.Telegram }; return(Ok(setting)); }