public static Response <T> ToResponse <T>(this BusinessProcess process, T data) { Response <T> rp = new Response <T>(data); rp.Infos = process.GetInfos(); rp.Errors = process.GetErrors(); return(rp); }
public static Response ToResponse(this BusinessProcess process) { Response rp = new Response(); rp.Infos = process.GetInfos(); rp.Errors = process.GetErrors(); return(rp); }