// GET: AnaSayfa public ActionResult Index() { homeModels home = new homeModels(); howIsWorkModel how = new howIsWorkModel(); bannerModels bannerModel = new bannerModels(); siteInformation site = _site.getOne(settings.siteInformation); List <banner> banner = _banner.getAll(); usingArea area = _usingArea.getOne(settings.usingArea); whatIsAdvantage advantage = advantageBll.getOne(settings.avantageId); validity service = _service.getOne(settings.service); talkTableTeam member = _member.getOne(settings.talkTableTeam); howIsWork howIsWork = _how.getOne(settings.how); bannerModel.banners = banner; bannerModel.site = site; how.site = site; how.HowIsWork = howIsWork; home.how = howIsWork; home.banner = bannerModel; home.site = site; home.area = area; home.advantage = advantage; home.service = service; home.team = member; return(View(home)); }
public int kullanimAlanlariAciklamaDuzenle(usingArea usingArea) { usingArea isExist = _usingArea.getOne(usingArea.id); if (isExist != null) { isExist.areaCaption = usingArea.areaCaption; isExist.areaDescription = usingArea.areaDescription; bool update = _usingArea.update(isExist); if (update) { return(1); } else { return(0); } } else { return(0); } }
public bool update(usingArea usingArea) { return(_usingAreaDal.Update(usingArea)); }
public bool add(usingArea usingArea) { return(_usingAreaDal.Add(usingArea)); }