public void CreateDefaultUser(UserOperations userOperations) { if (userOperations.GetAll().Count == 0) { var user = new User("admin", "1111", "yes", "ff10def1881sh2019crtmsh1923abc"); userOperations.AddModel(user); } }
public IActionResult Add(User model) { userOperations.AddModel(model); return(RedirectToAction("GetAll")); }