private async Task DeleteItemsAsync(IEnumerable <HobliModel> models) { foreach (var model in models) { await HobliService.DeleteHobliAsync(model); } }
private async Task <IList <HobliModel> > GetItemsAsync() { if (!ViewModelArgs.IsEmpty) { DataRequest <Data.Hobli> request = BuildDataRequest(); return(await HobliService.GetHoblisAsync(request)); } return(new List <HobliModel>()); }