/// <summary> /// Saves the type. /// </summary> /// <param name="type">The type.</param> public static void SaveType(PM_Types type) { try { GetSynegyRMSInstance().AddToPM_Types(type); GetSynegyRMSInstance().SaveChanges(); } catch (Exception) { throw; } }
/// <summary> /// Updates the type. /// </summary> /// <param name="type">The type.</param> public static void UpdateType(PM_Types type) { try { int rowsAffected = GetSynegyRMSInstance().SaveChanges(); } catch (Exception) { throw; } }
private SelectList GetProjectTypesWithSelectedValue(PM_Types defaultValue) { List<PM_Types> allProTypes = SynergyService.GetAllTypes(); SelectList list = new SelectList(allProTypes, "TypeId", "TypeName", defaultValue.TypeId); return list; }