Example #1
0
        public Account GetAccountById(int Id)
        {
            string sql = @"select * from Account where Id = " + Id;

            return(ReadData.ToObject <Account>(SqlDbHelper.GetDataTable(sql).Rows[0]));
        }
Example #2
0
        public List <Type> GetAllType()
        {
            string sql = "select * from [Types]";

            return(ReadData.ToList <Type>(SqlDbHelper.GetDataTable(sql)));
        }