public SomethingDTO getSomething(Guid id) { EntityFrameworkRepository repo = new EntityFrameworkRepository(); SomethingEF ef = repo.getSomething(); SomethingDTO something = repo.getSomething(SomethingConverter.ToDTO(ef)); return(something); }
public static SomethingEF ToEF(SomethingDTO dto) { SomethingEF ef = new SomethingEF(); return(ef); }
public static SomethingDTO ToDTO(SomethingEF ef) { SomethingDTO dto = new SomethingDTO(); return(dto); }