Exemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

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

            if (phecode_info == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

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

            if (phecode_info != null)
            {
                _context.phecode_info.Remove(phecode_info);
                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;
 }