public HomePageSteps(Driver driver)
 {
     myDriver    = driver;
     homePage    = new HomePage(myDriver.WebDriver);
     blogPage    = new Blogpage(myDriver.WebDriver);
     socialMedia = new SocialMediaPage(myDriver.WebDriver);
 }
 public IActionResult Edit(Blogpage model)
 {
     if (ModelState.IsValid)
     {
         _blogpageService.Update(model);
         TempData.Put("message", new ResultMessage()
         {
             Title   = "Bildirim",
             Message = "Blog Sayfası başarıyla güncellendi.",
             Css     = "success"
         });
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }
 public IActionResult Create(Blogpage entity)
 {
     if (ModelState.IsValid)
     {
         _blogpageService.Create(entity);
         TempData.Put("message", new ResultMessage()
         {
             Title   = "Bildirim",
             Message = "Blog Sayfası başarıyla oluşturuldu.",
             Css     = "success"
         });
         return(RedirectToAction("Index"));
     }
     return(View(entity));
 }
Exemple #4
0
 public void Update(Blogpage entity)
 {
     _blogpageDal.Update(entity);
 }
Exemple #5
0
 public void Delete(Blogpage entity)
 {
     _blogpageDal.Delete(entity);
 }
Exemple #6
0
 public void Create(Blogpage entity)
 {
     _blogpageDal.Create(entity);
 }