public NewExperiencePage()
        {
            InitializeComponent();
            //progressBar.IsVisible = true;
            //progressBar.IsRunning = true;

            //eduardo gia mvvm
            viewModel      = new NewExperienceViewModel();
            BindingContext = viewModel;
        }
        public ActionResult Create([FromRoute] int systemUserId, [FromBody] NewExperienceViewModel model)
        {
            var experience = new UserExperienceModel
            {
                CompanyName         = model.CompanyName,
                EndMonth            = model.EndMonth,
                EndYear             = model.EndYear,
                StartMonth          = model.StartMonth,
                StartYear           = model.StartYear,
                Title               = model.Title,
                SystemUserId        = systemUserId,
                IsCurrentlyWorkHere = model.IsCurrentlyWorkHere,
                Resume              = model.Resume
            };

            _experienceService.Create(experience);
            return(Ok(MessageHelper.Success("The experience have been created.")));
        }
 public PostCommand(NewExperienceViewModel vm)
 {
     this.viewModel = vm;
 }