private Task <FieldsViewModel> GetFieldsAsync()
        {
            FieldsViewModel fvm = new FieldsViewModel();
            FarmDetails     fd  = _ud.FarmDetails();

            if (fd.farmRegion.HasValue)
            {
                fvm.regionFnd = true;
            }
            else
            {
                fvm.regionFnd = false;
                fvm.noRegion  = _sd.GetUserPrompt("missingregion");
            }

            fvm.fields = new List <Field>();

            List <Field> fldList = _ud.GetFields();

            foreach (var f in fldList)
            {
                Field nf = new Field();
                nf.fieldName = f.fieldName;
                nf.area      = f.area;
                nf.comment   = f.comment;
                fvm.fields.Add(nf);
            }

            return(Task.FromResult(fvm));
        }
        private Task <FieldsViewModel> GetFieldsAsync()
        {
            FieldsViewModel fvm = new FieldsViewModel();

            fvm.fields = new List <Field>();

            List <Field> fldList = _ud.GetFields();

            foreach (var f in fldList)
            {
                Field nf = new Field();
                nf.fieldName = f.fieldName;
                nf.area      = f.area;
                nf.comment   = f.comment;
                fvm.fields.Add(nf);
            }

            return(Task.FromResult(fvm));
        }