IMenusRepository.cs 581 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. namespace GxPress.Repository.Interface.Menus
  5. {
  6. public interface IMenusRepository : IRepository
  7. {
  8. Task<int> InsertAsync(Entity.Menus.Menus model);
  9. Task<bool> UpdateAsync(Entity.Menus.Menus model);
  10. Task<bool> DeleteAsync(int id);
  11. Task<IEnumerable<Entity.Menus.Menus>> GetAllAsync();
  12. Task<IEnumerable<Entity.Menus.Menus>> GetAllAsync(List<int> menusIds);
  13. Task<IEnumerable<Entity.Menus.Menus>> GetAllMenusAsync(List<int> menusIds);
  14. }
  15. }