IAppendixService.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GreenTree.Nachtragsmanagement.Core.Domain.Appendix;
  7. namespace GreenTree.Nachtragsmanagement.Services.Appendix
  8. {
  9. public interface IAppendixService
  10. {
  11. #region Appendix
  12. /// <summary>
  13. /// Gets all appendices
  14. /// </summary>
  15. IList<Core.Domain.Appendix.Appendix> GetAllAppendices();
  16. /// <summary>
  17. /// Gets a appendix by specified Id
  18. /// </summary>
  19. /// <param name="id">Appendix identifier.</param>
  20. Core.Domain.Appendix.Appendix GetAppendixById(int id);
  21. /// <summary>
  22. /// Gets all appendices to the specified ids
  23. /// </summary>
  24. IList<Core.Domain.Appendix.Appendix> GetAppendicesByIds(int[] ids);
  25. /// <summary>
  26. /// Gets a appendix by specified customer number
  27. /// </summary>
  28. /// <param name="id">Customer number.</param>
  29. Core.Domain.Appendix.Appendix GetAppendixByCustomNumber(int customNumber);
  30. /// <summary>
  31. /// Insert a appendix
  32. /// </summary>
  33. /// <param name="appendix">Appendix.</param>
  34. void InsertAppendix(Core.Domain.Appendix.Appendix appendix);
  35. /// <summary>
  36. /// Update a appendix
  37. /// </summary>
  38. /// <param name="appendix">Appendix.</param>
  39. void UpdateAppendix(Core.Domain.Appendix.Appendix appendix);
  40. /// <summary>
  41. /// Delete a appendix
  42. /// </summary>
  43. /// <param name="appendix">Appendix.</param>
  44. void DeleteAppendix(Core.Domain.Appendix.Appendix appendix);
  45. #endregion
  46. #region Category
  47. /// <summary>
  48. /// Gets all categories
  49. /// </summary>
  50. IList<Category> GetAllCategories();
  51. /// <summary>
  52. /// Gets a category by specified Id
  53. /// </summary>
  54. /// <param name="id">Category identifier.</param>
  55. Category GetCategoryById(int id);
  56. /// <summary>
  57. /// Gets all categories to the specified ids
  58. /// </summary>
  59. IList<Category> GetCategoriesByIds(int[] ids);
  60. /// <summary>
  61. /// Insert a category
  62. /// </summary>
  63. /// <param name="category">Category.</param>
  64. void InsertCategory(Category category);
  65. /// <summary>
  66. /// Update a category
  67. /// </summary>
  68. /// <param name="category">Category.</param>
  69. void UpdateCategory(Category category);
  70. /// <summary>
  71. /// Delete a category
  72. /// </summary>
  73. /// <param name="category">Category.</param>
  74. void DeleteCategory(Category category);
  75. #endregion
  76. }
  77. }