public static bool DeleteSolutionLocationsPerSolution(Guid solutionId) { try { var mifnexsoEntities = new MIFNEXSOEntities(); int results = mifnexsoEntities.ExecuteStoreCommand( string.Format("DELETE SOLUTIONLOCATIONS WHERE SolutionId='{0}'", solutionId.ToString())); return(true); } catch (Exception) { return(false); } }
public static bool deleteListPerCategory(Guid solutionId, string category) { try { var mifnexsoEntities = new MIFNEXSOEntities(); int results = mifnexsoEntities.ExecuteStoreCommand( string.Format("DELETE SOLUTIONLISTS WHERE SolutionId='{0}' and Category='{1}'", solutionId.ToString(), category)); return(true); } catch (Exception) { return(false); } }
public static bool deleteListPerCategory(int userId, string category) { try { var mifnexsoEntities = new MIFNEXSOEntities(); int results = mifnexsoEntities.ExecuteStoreCommand( string.Format("DELETE UserPropertiesLists WHERE UserPropertyId={0} and Category='{1}'", userId.ToString(), category)); return(true); } catch (Exception) { return(false); } }
public static bool deleteListPerChallengeJudgeId(Guid challengeJudgeId) { try { var mifnexsoEntities = new MIFNEXSOEntities(); int results = mifnexsoEntities.ExecuteStoreCommand( string.Format("DELETE JUDGESASSIGNATION WHERE ChallengeJudgeId='{0}'", challengeJudgeId.ToString())); return(true); } catch (Exception) { return(false); } }