public ISomeEntity Display(ISomeEntity entity) { BDisplayEntity bEntity = entity as BDisplayEntity; if (bEntity == null) { throw new ArgumentException("Wrong type"); } //Do whatever happens when you convert parameter entity into a //"response" BDisplayEntity. I'm just returning a new //BDisplayEntity to make it compile for me return(new BDisplayEntity()); }
public ISomeEntity Display(ISomeEntity entity) { ADisplay disp = new ADisplay(); return(disp.ADisplay(entity)); }
public ISomeEntity Display(ISomeEntity entity) { BDisplay disp = new BDisplay(); return(disp.BDisplay(entity)); }