コード例 #1
0
        public PanelSaisieViewModel()
        {
            DemandeInputs = new SaveDemandeModel
            {
                station_id  = "1" /*AppSettings.UserId*/,
                demandePrix = new List <PrixTypeItem>(),
            };

            SubmitFormCommande = new Command(
                execute: async() =>
            {
                IsSubmitingForm = true;

                await OnSubmitForm();
            },
                canExecute: () =>
            {
                return(!IsSubmitingForm);
            }
                );
        }
コード例 #2
0
 public static async Task <RESTServiceResponse <DemandeModel> > SaveNewDemande(SaveDemandeModel model)
 {
     try
     {
         return(await RESTHelper.GetRequest <DemandeModel>(url : AppUrls.NewDemande, token : AppSettings.AccessToken, method : HttpVerbs.POST, postObject : model));
     }
     catch (Exception ex)
     {
         return(new RESTServiceResponse <DemandeModel>()
         {
             success = false, message = Assets.Strings.ErreurMessage
         });
     }
 }