AccountService.cs 614 B

12345678910111213141516171819202122232425
  1. using Cksoft.Data;
  2. using Cksoft.Data.Repository;
  3. using DllUfpDal;
  4. using DllUfpEntity;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. namespace AuthorizeCenter.Services
  10. {
  11. public class AccountService
  12. {
  13. public IDatabase CurrDb { get; set; }
  14. public Staff Login(Staff staff, ref string errorinfo)
  15. {
  16. using (IDatabase db = DbFactory.Base("ufp"))
  17. {
  18. var dal = new StaffDal(db);
  19. var res = dal.Login(staff, ref errorinfo);
  20. return res;
  21. }
  22. }
  23. }
  24. }