Пример #1
0
        private Task <CompostViewModel> GetCompostAsync()
        {
            CompostViewModel fvm = new CompostViewModel();

            fvm.composts   = new List <FarmManure>();
            fvm.compostMsg = _sd.GetUserPrompt("compostmessage");

            List <FarmManure> compostList = _ud.GetFarmManures();

            foreach (var f in compostList)
            {
                fvm.composts.Add(f);
            }

            return(Task.FromResult(fvm));
        }
        private Task <CompostViewModel> GetCompostAsync()
        {
            CompostViewModel fvm = new CompostViewModel();

            fvm.composts = new List <FarmManure>();

            fvm.GeneratedManures = _ud.GetGeneratedManures();
            fvm.ImportedManures  = _ud.GetImportedManures();
            fvm.StorageSystems   = _ud.GetStorageSystems();

            fvm.compostMsg = _sd.GetUserPrompt("compostmessage");
            fvm.ExplainMaterialsNeedingNutrientAnalysisMessage = _sd.GetUserPrompt("nutrientAnalysisForMaterialsMessage");

            List <FarmManure> compostList = _ud.GetFarmManures();

            foreach (var f in compostList)
            {
                fvm.composts.Add(f);
            }

            return(Task.FromResult(fvm));
        }