Пример #1
0
        public async Task <ActionResult> AddSample(Lab lab, string query = null)
        {
            if (string.IsNullOrWhiteSpace(query))
            {
                return(View(new LabsAddSampleViewModel {
                    Lab = lab
                }));
            }

            var model = new LabsAddSampleViewModel
            {
                Lab     = lab,
                Query   = query,
                Results = await LabsDao.ListAddableSamples(this, lab.TestId, query)
            };

            return(View(model));
        }