public async Task <IActionResult> Create([Bind("id,object_name,duration_h,result,dateTime")] AnalisReport analisReport) { if (ModelState.IsValid) { _context.Add(analisReport); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(analisReport)); }
public async Task <IActionResult> Create([Bind("id,project_name,error_text,dateTime")] UserException userException) { if (ModelState.IsValid) { _context.Add(userException); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(userException)); }