This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |