示例#1
0
 private ActionResult loginSuccess(LoginModel model)
 {
     Web.Models.UserLogin _userLogin = null;
     if (User != null)
     {
         _userLogin = accountService.LoginUser(model.UserName, model.Password, model.Company);
         if (_userLogin != null)
         {
             Session[Common.SessionKey.LOGGED_USER.ToKey()] = _userLogin;
         }
     }
     return(RedirectToAction("index", "home"));
 }
示例#2
0
文件: Biz.cs 项目: devend4a/OnlineMCQ
 public UserLogin DeleteUserLogin(UserLogin obj)
 {
     //_db.UserLogins.Remove(obj);
     //_db.SaveChanges();
     return(obj);
 }
示例#3
0
文件: Biz.cs 项目: devend4a/OnlineMCQ
 public UserLogin EditUserLogin(UserLogin obj)
 {
     //_db.Entry<UserLogin>(obj).State = System.Data.EntityState.Modified;
     // _db.SaveChanges();
     return(obj);
 }
示例#4
0
文件: Biz.cs 项目: devend4a/OnlineMCQ
 public UserLogin AddUserLogin(UserLogin obj)
 {
     //_db.UserLogins.Add(obj);
     //_db.SaveChanges();
     return(obj);
 }