Skip to content

Instantly share code, notes, and snippets.

//Interface:
public interface IProjectService<T, K>: IService<T, K> where T: Project where K: ProjectRes{}
//Injected implementation:
public class ProjectService<T, K> : Service<T, K>, IProjectService<T, K> where T : Project where K : ProjectRes, new()
{
private readonly IRepo<T, K> repo;
private readonly IUnitOfWork uOfWork;
private readonly IMapper mapper;
//Interface:
public interface IProjectService<T, K>: IService<T, K> where T: Project where K: ProjectRes{}
//Injected implementation:
public class ProjectService<T, K> : Service<T, K>, IProjectService<T, K> where T : Project where K : ProjectRes, new()
{
private readonly IRepo<T, K> repo;
private readonly IUnitOfWork uOfWork;
private readonly IMapper mapper;