Beispiel #1
0
        public ActionResult EditPost()
        {
            GetBlogByBlogerResponse byBlogerResponse = repo.GetBlogByBloger(User.Identity.Name);

            if (!byBlogerResponse.Success)
            {
                return(RedirectToAction("index", "Home"));
            }
            return(View(byBlogerResponse.BlogsByBlogger));
        }
Beispiel #2
0
        public GetBlogByBlogerResponse GetBlogByBloger(string blogger)
        {
            GetBlogByBlogerResponse getBlogByBlogerResponse = new GetBlogByBlogerResponse();


            getBlogByBlogerResponse.BlogsByBlogger = blogRepo.GetBlogsByBlogger(blogger);
            getBlogByBlogerResponse.Message        = "Success";
            getBlogByBlogerResponse.Success        = true;
            return(getBlogByBlogerResponse);
        }