NBDevManufacturerBLL.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using LeaRun.Application.Service.NBManage;
  7. using LeaRun.Application.Entity.NBManage;
  8. namespace LeaRun.Application.Busines.NBManage
  9. {
  10. public class NBDevManufacturerBLL
  11. {
  12. NBDevManufacturerService service = new NBDevManufacturerService();
  13. /// <summary>
  14. /// 保存NBDevManufacturer
  15. /// </summary>
  16. /// <param name="entity"></param>
  17. /// <returns> </returns>
  18. public bool SaveNBDevManufacturer(NBDevManufacturerEntity entity)
  19. {
  20. return service.SaveNBDevManufacturer(entity);
  21. }
  22. /// <summary>
  23. /// 更新NBDevManufacturer
  24. /// </summary>
  25. /// <param name="entity"></param>
  26. /// <returns></returns>
  27. public bool UpdateNBDevManufacturer(NBDevManufacturerEntity entity)
  28. {
  29. return service.UpdateNBDevManufacturer(entity);
  30. }
  31. /// <summary>
  32. /// 删除NBDevManufacturer
  33. /// </summary>
  34. /// <param name="NBDevManufacturerID"></param>
  35. /// <returns>3 不可删除 1 删除成功 0删除失败</returns>
  36. public int DeleteNBDevManufacturer(string NBDevManufacturerID)
  37. {
  38. return service.DeleteNBDevManufacturer(NBDevManufacturerID);
  39. }
  40. /// <summary>
  41. /// 获取NBDevManufacturer
  42. /// </summary>
  43. /// <param name="NBDevManufacturerID"></param>
  44. /// <returns></returns>
  45. public NBDevManufacturerEntity GetEntityById(string NBDevManufacturerID)
  46. {
  47. return service.GetEntityById(NBDevManufacturerID);
  48. }
  49. }
  50. }