private void UpdateJVCompany(string poli, projectJVCompany jvCompany, DateTime date) { jvCompany.content = poli; jvCompany.modified_at = date; _insendluEntities.Entry(jvCompany).State = System.Data.Entity.EntityState.Modified; _insendluEntities.SaveChanges(); }
private int GetJVCompany(string content, long projId) { var jv = new projectJVCompany { content = content, created_at = DateTime.Now, modified_at = DateTime.Now, proj_id = (int)projId }; _insendluEntities.projectJVCompanies.Add(jv); TryCatch(); return((int)jv.id); }