public ActionResult DeleteWriter(int id) { var writervalue = wm.GetById(id); wm.WriterDelete(writervalue); return(RedirectToAction("Index")); }
public ActionResult WriterProfile() { string writerMail = (string)Session["WriterMail"]; int id = context.Writers.Where(x => x.WriterMail == writerMail).Select(y => y.WriterId).FirstOrDefault(); var writerValues = writerManager.GetById(id); return(View(writerValues)); }
public ActionResult WriterProfile(int id = 0) { var p = (string)Session["WriterMail"]; id = c.Writers.Where(x => x.WriterMail == p).Select(y => y.WriterID).FirstOrDefault(); var value = writerManager.GetById(id); return(View(value)); }
public ActionResult WriterProfile() { string p = (string)Session["Writermail"]; writerid = wm.GetByMail(p).WriterId; var value = wm.GetById(writerid); return(View(value)); }
public ActionResult WriterProfile() { string p = (string)Session["WriterMail"]; var deger1 = c.Writers.Where(x => x.WriterMail == p).Select(a => a.WriterID).FirstOrDefault(); int id = deger1; var deger = wm.GetById(id); return(View(deger)); }
public ActionResult WriterProfile() { string result = (string)Session["WriterMail"]; var writerIdInfo = _efContext.Writers.Where(w => w.WriterMail == result).Select(x => x.WriterId).FirstOrDefault(); var writerValue = _writerManager.GetById(writerIdInfo); ViewBag.d = writerIdInfo; return(View(writerValue)); }
public ActionResult WriterProfile(int id = 0) { string param = (string)Session["WriterEmail"]; ViewBag.d = param; id = c.Writers.Where(x => x.WriterEmail == param).Select(y => y.WriterID).FirstOrDefault(); var wirterValue = wm.GetById(id); return(View(wirterValue)); }
public ActionResult WriterProfile() { string p = (string)Session["WriterMail"]; ViewBag.d = p; int id = c.Writers.Where(x => x.WriterMail == p).Select(y => y.WriterId).FirstOrDefault(); var writerValue = writerManager.GetById(id); return(View(writerValue)); }
public ActionResult WriterProfile(int id = 0) { string param = (string)Session["WriterMail"]; ViewBag.d = param; id = c.Writers.Where(w => w.WriterMail == param).Select(x => x.WriterID).FirstOrDefault(); var result = wm.GetById(id); return(View(result)); }
public ActionResult WriterProfile(int id = 0) { using (Context context = new Context()) { string session = (string)Session["WriterMail"]; id = context.Writers.Where(x => x.WriterMail == session).Select(y => y.WriterId) .FirstOrDefault(); var writerValue = writerManager.GetById(id); return(View(writerValue)); } }
public ActionResult EditWriter(int id) { WriterProfileEditDto writerProfileEditDto = new WriterProfileEditDto { WriterId = id, WriterMail = wm.GetById(id).WriterMail, WriterName = wm.GetById(id).WriterName, WriterSurname = wm.GetById(id).WriterSurname, WriterAbout = wm.GetById(id).WriterAbout, WriterImage = wm.GetById(id).WriterImage, WriterTitle = wm.GetById(id).WriterTitle, WriterStatus = wm.GetById(id).WriterStatus, }; return(View(writerProfileEditDto)); }
public ActionResult Edit(int id) { var model = writerManager.GetById(id); return(View(model)); }
public ActionResult EditWriter(int id) { var writerValue = _wm.GetById(id); return(View(writerValue)); }
public ActionResult EditWriter(int id) { var writervalue = writerManager.GetById(id); return(View(writervalue)); }
public ActionResult Edit(int id) { var writer = writerManager.GetById(id); return(View(writer)); }
public ActionResult Update(int id) { var result = writerManager.GetById(id); return(View(result)); }
public ActionResult WriterProfile() { int id = 0; string p = (string)Session["WriterMail"]; id = c.Writers.Where(x => x.WriterMail == p).Select(y => y.WriterId).FirstOrDefault(); WriterProfileEditDto writerProfileEditDto = new WriterProfileEditDto { WriterId = id, WriterMail = wm.GetById(id).WriterMail, WriterName = wm.GetById(id).WriterName, WriterSurname = wm.GetById(id).WriterSurname, WriterAbout = wm.GetById(id).WriterAbout, WriterImage = wm.GetById(id).WriterImage, WriterTitle = wm.GetById(id).WriterTitle, WriterStatus = wm.GetById(id).WriterStatus, }; var image = wm.GetById(id).WriterImage; ViewBag.img = image; var name = wm.GetById(id).WriterName; ViewBag.nm = name; var surname = wm.GetById(id).WriterSurname; ViewBag.sn = surname; var title = wm.GetById(id).WriterTitle; ViewBag.tit = title; return(View(writerProfileEditDto)); }