Beispiel #1
0
 public IList<String> LoginUser(LoginDTO obj)
 {
     String[] data = { "User", obj.User, "Key", obj.Password };
     _repository.SetData(data);
     _repository.SetProcedure("sp_identify_user");
     _repository.IsPaginator(false);
     return _repository.Login();
 }
Beispiel #2
0
 public ActionResult UserIdentify(String txtUser, String txtKeyHidden,String iplocal)
 {
     LoginDTO objDTO = new LoginDTO(txtUser, txtKeyHidden);
     IEnumerable<String> info = ContractService.LoginUser(objDTO);
     IList<String> list = new List<String>();
     if (info != null && info.Count() > 0)
     {
         CreateUserSession(info,iplocal);
         list.Add(info.Count() > 0 ? ResponseMessage.InfoResponse : ResponseMessage.ErrorDBResponse);
         list.Add(info.ElementAt(info.Count() - 2));
         list.Add(info.ElementAt(info.Count() - 1));
     }
     return Json(new { d = list });
 }