public ActionResult updateAuthor() { NewsServiceClient ins = new NewsServiceClient(); Author a = ins.getAuthor((int)Session["authorid"]); ViewBag.author = a; return(View()); }
public ActionResult getAuthor(int id) { NewsServiceClient ins = new NewsServiceClient(); Author a = ins.getAuthor(id); ViewBag.imgsrc = "data:image;base64," + Convert.ToBase64String(a.imagedata); ViewBag.authordata = a; return(View()); }