public static IDtoCapable GetAndPatchConcrete(this IDtoBase dto, IEnumerable <string> permittedFields = null) { var concrete = dto.GetConcrete(); dto.PatchConcrete(concrete, permittedFields); // return.... return(concrete); }
public static T GetConcrete <T>(this IDtoBase dto) where T : IDtoCapable { return((T)dto.GetConcrete()); }