public bool UpdatePassword(UserDTO user, string newPassword) { IDictionary <string, object> Parameters = new Dictionary <string, object>(); Parameters["Password"] = user.Password; Parameters["UserName"] = user.UserName; return(CrudFunctions.UpdateField(table, "Password", newPassword, Parameters)); }
public bool ChangeRecord(MediaDTO record, string Field, object Value) { IDictionary <string, object> conditions = new Dictionary <string, object>(); conditions["MediaID"] = record.MediaID; CrudFunctions.UpdateField(table, Field, Value, conditions); return(true); }