public async Task <IActionResult> Create([Bind("ReviewId,ProductName,UserName,ReviewText")] Review review) { if (ModelState.IsValid) { _context.Add(review); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(review)); }
public async Task <IActionResult> Create([Bind("Brand,Name,RyansPrice,StarPrice,StarLink,RyansLink,PicLink,Storage,Description,HddId")] HddFinal hddFinal) { if (ModelState.IsValid) { _context.Add(hddFinal); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(hddFinal)); }