コード例 #1
0
        // GET: Invasives/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Invasive invasive = db.InvasiveSet.Find(id);

            if (invasive == null)
            {
                return(HttpNotFound());
            }
            return(View(invasive));
        }
コード例 #2
0
ファイル: InvasiveService.cs プロジェクト: zguo29/brainic
 public Task DeleteAsync(Invasive model)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
ファイル: InvasiveService.cs プロジェクト: zguo29/brainic
 public async Task UpdateAsync(Invasive model)
 {
     _context.Entry(model).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }
コード例 #4
0
ファイル: InvasiveService.cs プロジェクト: zguo29/brainic
 public Task <Invasive> AddAsync(Invasive model)
 {
     throw new NotImplementedException();
 }