Exemple #1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            icd9Info = await _context.icd9Info.FirstOrDefaultAsync(m => m.Id == id);

            if (icd9Info == null)
            {
                return(NotFound());
            }
            return(Page());
        }
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            icd9Info = await _context.icd9Info.FindAsync(id);

            if (icd9Info != null)
            {
                _context.icd9Info.Remove(icd9Info);
                await _context.SaveChangesAsync();
            }

            return(RedirectToPage("./Index"));
        }
 public phecode_to_icd9_mapVals(phecode_to_icd9_map cm, icd9Info i, phecode_info p)
 {
     codeMap = cm;
     icd9    = i;
     pc      = p;
 }