ApplyService.cs 524 B

12345678910111213141516171819202122
  1. using FuelServer.Core.Entity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Fuel.Application.Service
  8. {
  9. public class ApplyService: IApplyService
  10. {
  11. public readonly IFreeSql _fsql;
  12. public ApplyService(IFreeSql fsql)
  13. {
  14. _fsql = fsql;
  15. }
  16. public AdApply GetApply(string appId)
  17. {
  18. return _fsql.Select<AdApply>().Where(_ => _.Appid == appId).First();
  19. }
  20. }
  21. }