public async void Init(DetailParameters parameters) { EntryEnabled = false; switch (parameters.mode) { case 0: //viewing data EntryEnabled = false; break; case 1: //Editing data EntryEnabled = true; break; case 2: //Add data EntryEnabled = true; break; default: break; } if (parameters.mode != 2) { //Get Players SelectedPlayer = await App.Database.GetPlayerAsync(parameters.id); } else { //Add Players SelectedPlayer = new Players(); } }
public async Task <PagedList <DetailDTO> > GetPagedDetails(DetailParameters parameters) { var x = await _eFUnitOfWork.EFDetailRepository.GetPagedDetails(parameters); var result = _mapper.Map <PagedList <DetailDTO> >(x); return(result); }
public async Task <PagedList <Detail> > GetPagedDetails(DetailParameters ownerParameters) { return(await PagedList <Detail> .ToPagedList(FindAll().OrderBy(on => on.Id), ownerParameters.PageNumber, ownerParameters.PageSize)); }
public async Task <IActionResult> GetPaged([FromQuery] DetailParameters parameters) { return(Ok(await _iEFDetail.GetPagedDetails(parameters))); }