I have the following:
public void SaveChanges(Project project, int ParentId)
{
//If not updating then insert
if (!UpdateMode)
{
//Insert New Project Else Simply Save Context Changes
this.Context.Projects.Add(project);
}
//save all changes
this.Context.SaveChanges();
}
The idea is that if I am in insert mode add a new project else I am in update mode and I need to simply save all of the changes. My project that gets passed in has the changes that were made in the web page but it does not get saved. shouldnt the following work?
public void SaveChanges(Project project, int ParentId)