예제 #1
0
        private async void BindListView()
        {
            ResponseRequestViewModel responseRequestViewModel = new ResponseRequestViewModel();
            List <Response>          data = await responseRequestViewModel.SearchByRecipientUserName(Application.Current.Properties["UserName"].ToString());

            ListviewResponse.ItemsSource = data;
        }
예제 #2
0
        public async Task <ResponseRequestViewModel <IEnumerable <TaskViewModel> > > GetTasks(string id)
        {
            var result = new ResponseRequestViewModel <IEnumerable <TaskViewModel> >();

            IEnumerable <TaskViewModel> tasks = await _taskService.GetTasks(id);

            result.ResponseData = tasks;
            result.IsSuccess    = true;

            return(result);
        }
        public void btnSubmitResponse()
        {
            ResponseRequestViewModel responseRequestViewModel = new ResponseRequestViewModel();
            Response response = new Response();

            response.RequestId   = reqId;
            response.description = resDescription.Text;

            response.DonorUserName     = Application.Current.Properties["UserName"].ToString();
            response.RecipientUserName = recipientUserName;
            response.status            = 0;
            responseRequestViewModel.AddNewRequestResponse(response);
        }