public IDataShell <AccountDBModel> Login(AccountDBModel account) { using (var conn = ConnFactory.GetUserConn()) using (var dal = new UserAccountTDAL(conn)) { var result = dal.GetSingle(account); return(result); } }
/// <summary> /// 获取单个记录 /// </summary> /// <param name="account"></param> /// <returns></returns> public IDataShell <AccountDBModel> Get(AccountDBModel account) { using (var conn = ConnFactory.GetUserConn()) { using (var dal = new UserAccountTDAL(conn)) { var result = dal.GetSingle(account); return(result); } } //return "未能提取到数据".Fail<BimUser>(); }