public ActionResult GirisYap(ServiceReferansimiz2.LoginData d) { ServiceReferansimiz2.AQServiceSoapClient t = new ServiceReferansimiz2.AQServiceSoapClient(); ServiceReferansimiz2.Users kul = t.GirisYap(d); if (kul != null) { Response.Cookies["UserID"].Value = kul.UserID.ToString(); Response.Cookies["UserName"].Value = kul.UserName.ToString(); Response.Cookies["UserPassword"].Value = kul.UserPassword.ToString(); HttpCookie aCookie = new HttpCookie("lastVisit"); Response.Cookies.Add(aCookie); return(RedirectToAction("Index")); } else { return(View()); } }
public JsonResult Kaydol(ServiceReferansimiz2.Users kul) { ServiceReferansimiz2.AQServiceSoapClient t = new ServiceReferansimiz2.AQServiceSoapClient(); return(Json(t.Kaydol(kul))); }