예제 #1
0
        public async Task <string> PostPlanillaAsync(CertPostModel data)
        {
            var planilla_Api = RestService.For <IPlanillaServiceApi>(ApiEndPoints.API_SERVICE_URL, _AuthService.Rs);
            var result       = await planilla_Api.PostPlanillaAsync(data);

            return(result);
        }
예제 #2
0
        } // GetUIPlanillaAsync(int mesaNro)

        public async Task <Response <object> > PostPlanillaAsync(CertPostModel dataToPost)
        {
            var apiResult = await planillasApi.Post(ApiEndPoints.API_SERVICE_URL, ApiPrefixes.API_PREFIX, "/planilla/post",
                                                    dataToPost,
                                                    authService.Token.AccessToken);

            if (!apiResult.IsSuccess)
            {
                return new Response <object> {
                           IsSuccess = false, Message = "Error de conectividad !"
                }
            }
            ;

            return(apiResult);
        } // PostPlanillaAsync
    }     // class PlanillasService