12345678910111213141516171819202122232425 |
- using Cksoft.Data;
- using Cksoft.Data.Repository;
- using DllUfpDal;
- using DllUfpEntity;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace AuthorizeCenter.Services
- {
- public class AccountService
- {
- public IDatabase CurrDb { get; set; }
- public Staff Login(Staff staff, ref string errorinfo)
- {
- using (IDatabase db = DbFactory.Base("ufp"))
- {
- var dal = new StaffDal(db);
- var res = dal.Login(staff, ref errorinfo);
- return res;
- }
- }
- }
- }
|