public async Task<IActionResult> Create([Bind("Id,Name,UserName,Password")] User user) { if (ModelState.IsValid) { user.AdditionDate = DateTime.Now; _context.Add(user); await _context.SaveChangesAsync(); return RedirectToAction(nameof(Login)); } return View(user); }
public void AddPlaylist(PlayList playList) { _context.Add(playList); _context.SaveChanges(); }
public void AddUserPlayList(Models.UserPlayList userPlayList) { _context.Add(userPlayList); _context.SaveChanges(); }