public string LogOut(Login log)
{
using (simpleEntities dbContext = new simpleEntities())
{
int ID = Convert.ToInt32(log.ID);
Login s_data = dbContext.Logins.Where(x => x.ID == ID).FirstOrDefault();
log.LogoutTime = DateTime.Now;
log.Status = 0;
dbContext.SaveChanges();
FormsAuthentication.SignOut();
Session.Abandon();
Session.Clear();
Response.Cookies.Clear();
Session.RemoveAll();
}
return RedirectToAction("Login", "Login");
}
i tried using return RedirectToAction("Login", "Login"); but it shows me error....
can anyone help me to solve this out..