public async void OpenUserPopUp(object obj = null)
        {
            var navigationParamters = new NavigationParameters();

            if (obj == null)
            {
                obj = new NhanKhauEntity();
            }
            navigationParamters.Add("obj", obj);
            await NavigationService.NavigateAsync("UserPopupPage", navigationParamters);
        }
Beispiel #2
0
        public async Task <bool> DeleteNhanKhau(NhanKhauEntity model)
        {
            try
            {
                var result = await PostRequestWithHandleErrorAsync <NhanKhauEntity, NhanKhauEntity>(AppConstant.AppConstant.APIDeleteNhanKhau, model);

                return(result.Message.IsSuccess);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Beispiel #3
0
        public async Task <NhanKhauEntity> SaveNhanKhau(NhanKhauEntity model)
        {
            try
            {
                var result = await PostRequestWithHandleErrorAsync <NhanKhauEntity, NhanKhauEntity>(AppConstant.AppConstant.APIInsertOrUpdateNhanKhau, model);

                if (result.Message.IsSuccess)
                {
                    return(result.Result);
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception)
            {
                return(null);
            }
        }
 public override void OnNavigatedTo(INavigationParameters parameters)
 {
     CurrentData = parameters.GetValue <NhanKhauEntity>("obj");
     base.OnNavigatedTo(parameters);
 }