public SuUserProjectModel UpdateUserProject(SuUserProjectModel suUserProjectChanges) { var suUserProject = context.DbUserProject.Attach(suUserProjectChanges); suUserProject.State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); return(suUserProjectChanges); }
public SuUserProjectModel AddUserProject(SuUserProjectModel suUserProject) { context.DbUserProject.Add(suUserProject); context.SaveChanges(); return(suUserProject); }