using Ropin.Inspection.Model;
using Ropin.Inspection.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Ropin.Inspection.Service
{
    public interface ITdevMaintenancePlanService : IBaseService<TdevMaintenancePlanViewModel>, IBaseServiceById<TdevMaintenancePlanViewModel, Guid>
    {
        Task<IEnumerable<TdevMaintenancePlanViewModel>> GetAllAsync();
        Task<IEnumerable<TdevMaintenancePlanViewModel>> GetByConditionAsync(Expression<Func<TdevMaintenancePlanViewModel, bool>> expression);
        Task UpdateAsync(string code, TdevMaintenancePlanUpdateModel updateModel);
        Task<IEnumerable<TdevMaintenancePlanViewModel>> GetConditionAsync(TdevMaintenancePlanSearchModel searchModel);
        Task DeleteAsync(string code);
    }
}