private async void BindListView() { ResponseRequestViewModel responseRequestViewModel = new ResponseRequestViewModel(); List <Response> data = await responseRequestViewModel.SearchByRecipientUserName(Application.Current.Properties["UserName"].ToString()); ListviewResponse.ItemsSource = data; }
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); }