public ActionResult Login(string email, string pass)
 {
     if (ModelState.IsValid)
     {
         var list = objUser.GetAllUsers();
         var data = list.Where(s => s.Email.Equals(email) && s.Pass.Equals(pass)).ToList();
         if (data.Count() > 0)
         {
             TempData["FullName"] = data.FirstOrDefault().firstname + " " + data.FirstOrDefault().lastname;
             TempData["Email"]    = data.FirstOrDefault().Email;
             TempData["idUser"]   = data.FirstOrDefault().Userid;
             return(RedirectToAction("Index"));
         }
         else
         {
             ViewBag.error = "Login Failed";
             return(RedirectToAction("Login"));
         }
     }
     return(View());
 }