public Boolean Update(CaseType record) { if (record == null) { return(false); } var attached = CaseTypes.Attach(record); if (attached == null) { return(false); } Entry(attached).State = EntityState.Modified; return(SaveChanges() == 1); }
public Boolean Remove(CaseType record) { if (record == null) { return(false); } var attached = CaseTypes.Attach(record); if (attached == null) { return(false); } CaseTypes.Remove(attached); return(SaveChanges() == 1); }