摘要:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MySchoolModels;
namespace MySchool.DAL
{
public class AdminService
{
public static bool CheckAdmin(string userName, string pwd)
{
string sql = "proc_Login";
SqlParameter[] para = new SqlParameter[] {
new SqlParameter("@userName",userName),
new SqlParameter("@password",pwd)
};
阅读全文