Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public IActionResult AddProject(Project project) { if (!ModelState.IsValid) { return(View(project)); } else { dal.AddProject(project.Name, project.Date, project.Description, project.Thumbnail); MessageViewModel model = new MessageViewModel(); model.Message = "Project added with success !"; model.MessageColor = "green"; return(RedirectToAction("Index", model)); } }