public static bool Insert(Guid id, string name, string desc, Guid oid, Guid aid, Guid dtid, Guid catID) { try { var data = StatusTypesReferencesVM.set(id, name, desc, oid, aid, dtid, catID); using (var context = new CentralProcessContext()) { context.StatusTypesReferencesDB.Add(data); context.SaveChanges(); return(true); } } catch { return(false); } }