Example #1
0
        public static IDtoCapable GetAndPatchConcrete(this IDtoBase dto, IEnumerable <string> permittedFields = null)
        {
            var concrete = dto.GetConcrete();

            dto.PatchConcrete(concrete, permittedFields);

            // return....
            return(concrete);
        }
Example #2
0
 public static T GetConcrete <T>(this IDtoBase dto)
     where T : IDtoCapable
 {
     return((T)dto.GetConcrete());
 }