aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Services/Interfaces/IBaseService.cs
blob: 55500ff6b52f8b0b05a21e7b86c06474e1732d31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace ExamTemplate.Services.Interfaces
{
    public interface IBaseService<DbModel, ServiceModel>
		where DbModel : class
		where ServiceModel : class
	{
		Task<bool> CreateAsync(ServiceModel serviceModel);

		Task<ServiceModel> GetByIdAsync(Guid id);

		Task<List<ServiceModel>> GetAll();

		Task<bool> EditAsync(ServiceModel serviceModel);

		Task<bool> DeleteAsync(Guid id);
	}
}