public IActionResult NewUpdate(Update model) { model.UpdateDate = DateTime.Now; // Store the model in the database repo.AddUpdate(model); return(View(model)); }
public bool CreateUpdate(DomainModel.Models.Update update) { _updateRepository.AddUpdate(update); return(true); }