public T RetrieveAuth <T>(BaseEntity entity) { var lstResult = dao.ExecuteQueryProcedure(_mapper.GetRetriveStatement(entity)); if (lstResult.Count <= 0) { return(default(T)); } var dic = lstResult[0]; var objs = _mapper.BuildObjectSecure(dic); return((T)Convert.ChangeType(objs, typeof(T))); }