I am developing an electronic medical record (EMR) system.
I am designing and implementing the backend APIs using WCF.
Now, I have two system actors: secretary and doctor.
I designed the services according to the actor he/she is concerned.
public interface ISecretaryService
public interface IDoctorService : ISecretaryService
//the doctor has the functions of secretary in case she was absent!
The problem is I have duplicate code which is the implementation of the ISecretary contract in doctor service.