Exemple #1
0
        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);
        }
Exemple #2
0
        public static Response ToResponse(this BusinessProcess process)
        {
            Response rp = new Response();

            rp.Infos  = process.GetInfos();
            rp.Errors = process.GetErrors();
            return(rp);
        }